Fix test failure with UI test if UI is deployed

This commit is contained in:
Matthias 2021-04-07 06:55:11 +02:00
parent 0f0607baec
commit ac6bff536f

View File

@ -13,6 +13,11 @@ async def favicon():
return FileResponse(str(Path(__file__).parent / 'ui/favicon.ico'))
@router_ui.get('/fallback_file.html', include_in_schema=False)
async def fallback():
return FileResponse(str(Path(__file__).parent / 'ui/fallback_file.html'))
@router_ui.get('/{rest_of_path:path}', include_in_schema=False)
async def index_html(rest_of_path: str):
"""