Serve jellomator icon at root path
All checks were successful
docker / build-and-push (push) Successful in 47s

This commit is contained in:
Space-Banane
2026-05-20 21:35:35 +02:00
parent 648cb0a929
commit 5d6be52e32

View File

@@ -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/"):