fixed issue
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 54s
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 54s
This commit is contained in:
@@ -298,10 +298,7 @@ async def reload_data():
|
||||
return {"status": "reloaded"}
|
||||
|
||||
|
||||
# Mount static files after all routes are defined
|
||||
@app.on_event("startup")
|
||||
async def mount_static():
|
||||
"""Mount static file serving."""
|
||||
# Mount static files directly (must be after all routes to avoid catching API calls)
|
||||
if settings.frontend_dir.exists():
|
||||
app.mount("/static", StaticFiles(directory=settings.frontend_dir), name="static")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user