Add dollar-sign favicon
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user