Spaces:
Sleeping
Sleeping
Commit ·
6dd47b9
1
Parent(s): f84b9c5
Fix asset 404 by explicitly mounting /assets
Browse files- toothmap_backend/main.py +1 -0
toothmap_backend/main.py
CHANGED
|
@@ -243,4 +243,5 @@ async def segment_unet(file: UploadFile = File(...)):
|
|
| 243 |
|
| 244 |
# --- Mount React Frontend ---
|
| 245 |
# This MUST be the last route registered so it doesn't shadow API routes
|
|
|
|
| 246 |
app.mount("/", StaticFiles(directory="static", html=True), name="static")
|
|
|
|
| 243 |
|
| 244 |
# --- Mount React Frontend ---
|
| 245 |
# This MUST be the last route registered so it doesn't shadow API routes
|
| 246 |
+
app.mount("/assets", StaticFiles(directory="static/assets"), name="assets")
|
| 247 |
app.mount("/", StaticFiles(directory="static", html=True), name="static")
|