feat: complete real-time voice-ai engine upgrades and frontend integration guide

This commit is contained in:
2026-09-03 12:34:55 +05:30
parent c23d979338
commit 37440993f7
56 changed files with 2521 additions and 3040 deletions
+16
View File
@@ -71,6 +71,22 @@ app.include_router(voice_router)
app.include_router(documents_router)
from fastapi.staticfiles import StaticFiles
from fastapi.responses import FileResponse
import os
docs_dir = os.path.join(os.path.dirname(os.path.dirname(__file__)), "docs")
if os.path.exists(docs_dir):
app.mount("/static", StaticFiles(directory=docs_dir), name="static")
@app.get("/")
@app.get("/dashboard")
async def serve_dashboard():
dashboard_path = os.path.join(docs_dir, "index.html")
if os.path.exists(dashboard_path):
return FileResponse(dashboard_path)
return {"message": "CureSelect AI Voice Backend Ready"}
@app.get("/health")
async def health():
return {