feat: complete real-time voice-ai engine upgrades and frontend integration guide
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user