fix: serve /favicon.ico so search engines find the site icon
This commit is contained in:
@@ -961,6 +961,11 @@ async def telegram_webhook(request: Request, db: Session = Depends(get_db)):
|
|||||||
|
|
||||||
return {"ok": True}
|
return {"ok": True}
|
||||||
|
|
||||||
|
@app.get("/favicon.ico", include_in_schema=False)
|
||||||
|
def favicon():
|
||||||
|
from fastapi.responses import FileResponse
|
||||||
|
return FileResponse("static/favicon.png", media_type="image/png")
|
||||||
|
|
||||||
@app.get("/robots.txt", include_in_schema=False)
|
@app.get("/robots.txt", include_in_schema=False)
|
||||||
def robots_txt():
|
def robots_txt():
|
||||||
from fastapi.responses import FileResponse
|
from fastapi.responses import FileResponse
|
||||||
|
|||||||
Reference in New Issue
Block a user