Fixed card back
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
@@ -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 |
Reference in New Issue
Block a user