Spaces:
Paused
Paused
Update controllers/health_controller.py
Browse files
controllers/health_controller.py
CHANGED
@@ -1,7 +1,12 @@
|
|
1 |
-
from fastapi import APIRouter
|
2 |
-
|
3 |
-
router = APIRouter()
|
4 |
-
|
5 |
-
@router.get("/")
|
6 |
-
def health():
|
7 |
-
return {"status": "ok"}
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from fastapi import APIRouter
|
2 |
+
|
3 |
+
router = APIRouter()
|
4 |
+
|
5 |
+
@router.get("/")
|
6 |
+
def health():
|
7 |
+
return {"status": "ok"}
|
8 |
+
|
9 |
+
@router.get("/health/intents")
|
10 |
+
def health_intents():
|
11 |
+
loaded_projects = list(INTENT_MODELS.keys())
|
12 |
+
return {"status": "ok", "loaded_projects": loaded_projects}
|