uncertainrods commited on
Commit
264fa73
·
1 Parent(s): 4eb0e2d
Files changed (1) hide show
  1. main.py +9 -0
main.py CHANGED
@@ -99,6 +99,15 @@ async def analyze_thought(request: Request, body: AnalyzeRequest):
99
  raise HTTPException(status_code=500, detail=str(e))
100
 
101
 
 
 
 
 
 
 
 
 
 
102
  @app.get("/health")
103
  def health_check():
104
  """Liveness check endpoint."""
 
99
  raise HTTPException(status_code=500, detail=str(e))
100
 
101
 
102
+ @app.get("/")
103
+ def root():
104
+ """Root endpoint for HF Spaces health checks and docs link."""
105
+ return {
106
+ "status": "ok",
107
+ "message": "AlgoSensei Backend is running",
108
+ "documentation": "/docs"
109
+ }
110
+
111
  @app.get("/health")
112
  def health_check():
113
  """Liveness check endpoint."""