Fix favicon HEAD 405 and unify favicon design across ico/png/svg

This commit is contained in:
2026-08-03 13:00:29 +00:00
parent b7ec4b81a5
commit 3251ce3380
6 changed files with 3 additions and 25 deletions
+1 -1
View File
@@ -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")
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 27 KiB

+2 -24
View File
File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 43 KiB