Javelina/api/extensions/utils.py
2024-02-04 00:55:51 +01:00

9 lines
250 B
Python

from pathlib import Path
from api.app import app
from fastapi.responses import FileResponse
@app.get("/favicon.ico", response_class=FileResponse, include_in_schema=False)
async def favicon():
return FileResponse(Path("api/assets/favicon.ico"))