Fixed card back
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -86,6 +86,9 @@ 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
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 917 KiB |
Reference in New Issue
Block a user