essprasad commited on
Commit
004258c
·
verified ·
1 Parent(s): 680b598

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -369,7 +369,15 @@ async def mobile_chat(request: dict):
369
  # CREATE ROOT APP (FastAPI) AND MOUNT BOTH UI + API
370
  # ============================================================
371
  root_app = FastAPI()
372
-
 
 
 
 
 
 
 
 
373
  # Mount /api → FastAPI backend
374
  root_app.mount("/api", proxy_api)
375
 
 
369
  # CREATE ROOT APP (FastAPI) AND MOUNT BOTH UI + API
370
  # ============================================================
371
  root_app = FastAPI()
372
+ from datetime import datetime
373
+
374
+ @root_app.get("/health")
375
+ def health_check():
376
+ return {
377
+ "status": "ok",
378
+ "service": "ct-chat",
379
+ "timestamp": datetime.utcnow().isoformat()
380
+ }
381
  # Mount /api → FastAPI backend
382
  root_app.mount("/api", proxy_api)
383