Fixed card back

This commit is contained in:
2026-05-13 22:09:25 -05:00
parent 486cb348bb
commit 7a0224e380
3 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -7,4 +7,4 @@ PASSWORD: str = _cfg["password"]
BASE_URL: str = _cfg["base_url"].rstrip("/") BASE_URL: str = _cfg["base_url"].rstrip("/")
PORT: int = _cfg.get("port", 8000) PORT: int = _cfg.get("port", 8000)
OUTPUTS = Path("outputs") 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"
+4 -1
View File
@@ -86,7 +86,10 @@ app.include_router(public_router) # no auth — TTS app fetches card images dir
async def index(_=Depends(auth)): async def index(_=Depends(auth)):
return FileResponse("static/index.html") 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__": if __name__ == "__main__":
import uvicorn import uvicorn
uvicorn.run(app, host="0.0.0.0", port=PORT) uvicorn.run(app, host="0.0.0.0", port=PORT)
Binary file not shown.

After

Width:  |  Height:  |  Size: 917 KiB