Fix favicon HEAD 405 and unify favicon design across ico/png/svg
@@ -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")
|
||||
|
||||
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 27 KiB |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 6.5 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 8.2 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 43 KiB |