phureexd commited on
Commit
e939c95
·
1 Parent(s): f3ccec8

Add root endpoint

Browse files
Files changed (1) hide show
  1. main_v2.py +5 -0
main_v2.py CHANGED
@@ -318,6 +318,11 @@ app.add_middleware(
318
  # --- FastAPI Endpoints ---
319
 
320
 
 
 
 
 
 
321
  @app.get("/generate", summary="Generate a response from the health assistant model")
322
  async def generate_endpoint(
323
  query: str,
 
318
  # --- FastAPI Endpoints ---
319
 
320
 
321
+ @app.get("/", summary="Root endpoint")
322
+ async def root():
323
+ return {"message": "Health Assistant API is running!", "docs_url": "/docs"}
324
+
325
+
326
  @app.get("/generate", summary="Generate a response from the health assistant model")
327
  async def generate_endpoint(
328
  query: str,