Stringify favicon path

potentially closes #4459
This commit is contained in:
Matthias 2021-02-28 08:47:56 +01:00
parent bc0efe5baa
commit 05f057fe72

View File

@ -10,7 +10,7 @@ router_ui = APIRouter()
@router_ui.get('/favicon.ico', include_in_schema=False) @router_ui.get('/favicon.ico', include_in_schema=False)
async def favicon(): async def favicon():
return FileResponse(Path(__file__).parent / 'ui/favicon.ico') return FileResponse(str(Path(__file__).parent / 'ui/favicon.ico'))
@router_ui.get('/{rest_of_path:path}', include_in_schema=False) @router_ui.get('/{rest_of_path:path}', include_in_schema=False)