diff --git a/config.py b/config.py index 360b34d..6ec03f9 100644 --- a/config.py +++ b/config.py @@ -7,4 +7,4 @@ PASSWORD: str = _cfg["password"] BASE_URL: str = _cfg["base_url"].rstrip("/") PORT: int = _cfg.get("port", 8000) OUTPUTS = Path("outputs") -MTG_BACK = "https://upload.wikimedia.org/wikipedia/en/a/aa/Magic_the_Gathering_card_back.jpg" +MTG_BACK = "https://https://cards.swolereport.com/card_back.jpg" diff --git a/main.py b/main.py index 5aee352..ddee57e 100644 --- a/main.py +++ b/main.py @@ -86,7 +86,10 @@ app.include_router(public_router) # no auth — TTS app fetches card images dir async def index(_=Depends(auth)): return FileResponse("static/index.html") - +@app.get("/card_back.jpg") +async def card_back(): + return FileResponse("static/card_back.jpg", media_type="image/jpeg") + if __name__ == "__main__": import uvicorn uvicorn.run(app, host="0.0.0.0", port=PORT) diff --git a/static/card_back.jpg b/static/card_back.jpg new file mode 100644 index 0000000..b7fa7fb Binary files /dev/null and b/static/card_back.jpg differ