diff --git a/app/main.py b/app/main.py index 5f82e79..d85689e 100644 --- a/app/main.py +++ b/app/main.py @@ -61,6 +61,11 @@ app.include_router(router) app.mount("/static", StaticFiles(directory=STATIC), name="static") +@app.get("/favicon.ico", include_in_schema=False) +def favicon(): + return FileResponse(STATIC / "favicon.svg", media_type="image/svg+xml") + + def _signed_in(request: Request) -> bool: token = request.cookies.get(auth.SESSION_COOKIE) return bool(token and auth._session_user(token)) diff --git a/app/static/favicon.svg b/app/static/favicon.svg new file mode 100644 index 0000000..a40e5c8 --- /dev/null +++ b/app/static/favicon.svg @@ -0,0 +1,6 @@ + diff --git a/app/static/index.html b/app/static/index.html index eb044f8..9d98bff 100644 --- a/app/static/index.html +++ b/app/static/index.html @@ -4,6 +4,7 @@