Nothing12Man commited on
Commit
37eddd3
·
1 Parent(s): 5eb188c

Add root route for HF Space homepage

Browse files
Files changed (1) hide show
  1. backend/app/main.py +10 -0
backend/app/main.py CHANGED
@@ -31,6 +31,16 @@ def startup_event() -> None:
31
  logger.info("LifeLine AI API started successfully")
32
 
33
 
 
 
 
 
 
 
 
 
 
 
34
  @app.get("/health")
35
  def health() -> Dict[str, str]:
36
  return {"status": "ok", "project": "LifeLine AI"}
 
31
  logger.info("LifeLine AI API started successfully")
32
 
33
 
34
+ @app.get("/")
35
+ async def home():
36
+ return {
37
+ "status": "live",
38
+ "project": "LifeLine AI",
39
+ "message": "Meta Hackathon deployment is running successfully",
40
+ "endpoints": ["/health", "/run-benchmark"],
41
+ }
42
+
43
+
44
  @app.get("/health")
45
  def health() -> Dict[str, str]:
46
  return {"status": "ok", "project": "LifeLine AI"}