From 5d6be52e321d3c1d97d42c1584a5a5671c0cb906 Mon Sep 17 00:00:00 2001 From: Space-Banane Date: Wed, 20 May 2026 21:35:35 +0200 Subject: [PATCH] Serve jellomator icon at root path --- backend/main.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/backend/main.py b/backend/main.py index 608fca1..5730c91 100644 --- a/backend/main.py +++ b/backend/main.py @@ -300,6 +300,14 @@ if PUBLIC_DIR.exists(): app.mount("/static", StaticFiles(directory=PUBLIC_DIR), name="public") +@app.get("/jellomator.png") +def root_icon(): + icon = PUBLIC_DIR / "jellomator.png" + if not icon.exists(): + raise HTTPException(404, "Not found") + return FileResponse(icon) + + @app.get("/{path:path}") def spa(path: str): if path.startswith("api/"):