flare / controllers /health_controller.py
ciyidogan's picture
Update controllers/health_controller.py
231e232 verified
raw
history blame
309 Bytes
from fastapi import APIRouter
from core import INTENT_MODELS
router = APIRouter()
@router.get("/")
def health():
return {"status": "ok"}
@router.get("/health/intents")
def health_intents():
loaded_projects = list(INTENT_MODELS.keys())
return {"status": "ok", "loaded_projects": loaded_projects}