updates to compose file .env file final one_time_linke release

This commit is contained in:
MEGASOL\simon.adams
2025-09-02 09:56:43 +02:00
parent 60f1526f06
commit dedfd339a2
12 changed files with 143 additions and 105 deletions

View File

@@ -356,6 +356,15 @@ async def menu_page(request: Request) -> HTMLResponse:
return RedirectResponse(url="/login")
return FileResponse(os.path.join(FRONTEND_DIR, "menu.html"))
@app.get("/favicon.ico")
async def favicon() -> Response:
"""Serve favicon from /static/favicon.png if present (avoids 404 noise)."""
path = os.path.join(FRONTEND_DIR, "favicon.png")
if os.path.exists(path):
with open(path, "rb") as f:
return Response(content=f.read(), media_type="image/png")
return Response(status_code=204)
@app.post("/api/ping")
async def api_ping() -> dict:
"""Connectivity test endpoint used by the UI to display a temporary banner."""