Remove logging, add favicon
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user