issoufzousko07 commited on
Commit
26f9094
·
verified ·
1 Parent(s): 931223d

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. main.py +6 -0
main.py CHANGED
@@ -1448,6 +1448,12 @@ def health_check():
1448
  "version": "2.0.0"
1449
  }
1450
 
 
 
 
 
 
 
1451
  # --- DASHBOARD ENDPOINTS ---
1452
 
1453
  @app.get("/api/dashboard/stats")
 
1448
  "version": "2.0.0"
1449
  }
1450
 
1451
+ @app.get("/", include_in_schema=False)
1452
+ async def root():
1453
+ """Redirect root to docs."""
1454
+ from fastapi.responses import RedirectResponse
1455
+ return RedirectResponse(url="/docs")
1456
+
1457
  # --- DASHBOARD ENDPOINTS ---
1458
 
1459
  @app.get("/api/dashboard/stats")