Fix presenter subdirectory.

This commit is contained in:
Matthew Stratford 2021-09-30 20:46:51 +01:00
parent 2fdc9bf0e9
commit f44d22aad3

View file

@ -319,9 +319,15 @@ async def audio_file(request, type: str, id: int):
# Static Files # Static Files
app.static("/favicon.ico", resolve_local_file_path("ui-static/favicon.ico"), name="ui-favicon") app.static("/favicon.ico", resolve_local_file_path("ui-static/favicon.ico"), name="ui-favicon")
app.static("/static", resolve_local_file_path("ui-static"), name="ui-static") app.static("/static", resolve_local_file_path("ui-static"), name="ui-static")
app.static("/presenter/", resolve_local_file_path("presenter-build/index.html"),
strict_slashes=True, name="presenter-index") dist_directory = resolve_local_file_path("presenter-build")
app.static("/presenter/", resolve_local_file_path("presenter-build")) app.static("/presenter", dist_directory)
app.static(
"/presenter/",
resolve_local_file_path("presenter-build/index.html"),
strict_slashes=True,
name="presenter-index",
)
# Helper Functions # Helper Functions