Remove logging, add favicon

This commit is contained in:
2025-07-18 07:44:13 +02:00
parent f312edabd7
commit e346949953
5 changed files with 28 additions and 3 deletions

View File

@ -120,7 +120,6 @@ def create_admin_app(
@app.get("/")
def serve_frontend(request: Request) -> FileResponse:
"""Serve the frontend SPA index."""
LOG.info("Got this request: %r", request.url)
if not settings.frontend_dir:
raise HTTPException(status_code=404, detail="Not found.")
return FileResponse(settings.frontend_dir / "index.html")
@ -128,7 +127,6 @@ def create_admin_app(
@app.get("/{frontend_path:path}")
def serve_frontend_path(frontend_path: str) -> FileResponse:
"""Serve the frontend SPA.."""
LOG.info("Got request for %s", frontend_path)
if not settings.frontend_dir:
raise HTTPException(status_code=404, detail="Not found.")
static_file = settings.frontend_dir / frontend_path