ciyidogan commited on
Commit
382907b
·
verified ·
1 Parent(s): d379bc3

Update controllers/health_controller.py

Browse files
Files changed (1) hide show
  1. controllers/health_controller.py +12 -7
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}