diff --git a/src/openflexure_microscope_server/server/serve_static_files.py b/src/openflexure_microscope_server/server/serve_static_files.py index d87e5dec..4f5ad96c 100644 --- a/src/openflexure_microscope_server/server/serve_static_files.py +++ b/src/openflexure_microscope_server/server/serve_static_files.py @@ -44,3 +44,10 @@ def add_static_files(app: FastAPI) -> None: StaticFiles(directory=fpath), name=f"static_{fname}", ) + + # Mount the scan directory to .../scans/, to allow dzi viewing + app.mount( + "/scans/", + StaticFiles(directory="/var/openflexure/scans/"), + name="scans", + )