Victor Gerardo Rivera commited on
Commit
e7d23ae
·
1 Parent(s): 59e5ed2

Add root endpoint so HF doesn't log 404 on health check

Browse files
Files changed (1) hide show
  1. main.py +4 -0
main.py CHANGED
@@ -21,6 +21,10 @@ app.add_middleware(
21
  parser = LabReportParser()
22
  renderer = VisualRenderer()
23
 
 
 
 
 
24
  @app.get("/health")
25
  async def health():
26
  return {"status": "healthy"}
 
21
  parser = LabReportParser()
22
  renderer = VisualRenderer()
23
 
24
+ @app.get("/")
25
+ async def root():
26
+ return {"message": "StrainAI Backend API is up and running!", "docs": "/docs"}
27
+
28
  @app.get("/health")
29
  async def health():
30
  return {"status": "healthy"}