internationalscholarsprogram commited on
Commit
c701395
Β·
1 Parent(s): 39f60ed

fix: add root endpoint for HF Spaces health probe

Browse files
Files changed (1) hide show
  1. app/api/routes.py +8 -0
app/api/routes.py CHANGED
@@ -27,6 +27,14 @@ logger = logging.getLogger(__name__)
27
  router = APIRouter()
28
 
29
 
 
 
 
 
 
 
 
 
30
  # ── Health check ──
31
 
32
  @router.get("/health", response_model=HealthResponse, tags=["system"])
 
27
  router = APIRouter()
28
 
29
 
30
+ # ── Root / HF health probe ──
31
+
32
+ @router.get("/", tags=["system"])
33
+ async def root():
34
+ """Root endpoint β€” HF Spaces probes this URL for health checks."""
35
+ return {"status": "ok"}
36
+
37
+
38
  # ── Health check ──
39
 
40
  @router.get("/health", response_model=HealthResponse, tags=["system"])