15 lines
340 B
Python
15 lines
340 B
Python
import logging
|
|
from logging import Logger
|
|
from pathlib import Path
|
|
|
|
from fastapi.responses import FileResponse
|
|
|
|
from api.app import app
|
|
|
|
logger: Logger = logging.getLogger(__name__)
|
|
|
|
|
|
@app.get("/favicon.ico", response_class=FileResponse, include_in_schema=False)
|
|
async def favicon():
|
|
return FileResponse(Path("api/assets/favicon.ico"))
|