Fix favicon HEAD 405 and unify favicon design across ico/png/svg
This commit is contained in:
+1
-1
@@ -962,7 +962,7 @@ async def telegram_webhook(request: Request, db: Session = Depends(get_db)):
|
||||
|
||||
return {"ok": True}
|
||||
|
||||
@app.get("/favicon.ico", include_in_schema=False)
|
||||
@app.api_route("/favicon.ico", methods=["GET", "HEAD"], include_in_schema=False)
|
||||
def favicon():
|
||||
from fastapi.responses import FileResponse
|
||||
return FileResponse("static/favicon.ico", media_type="image/x-icon")
|
||||
|
||||
Reference in New Issue
Block a user