Javelina/api/extensions/utils.py

9 lines
250 B
Python
Raw Permalink Normal View History

2024-02-04 01:55:51 +02:00
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"))