Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
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")
|