Spaces:
Running
Running
Melika Kheirieh
commited on
Commit
·
d53014f
1
Parent(s):
78a30b1
feat(api): add /health endpoint
Browse files- app/routers/nl2sql.py +5 -0
app/routers/nl2sql.py
CHANGED
|
@@ -298,6 +298,11 @@ def _final_schema_preview(db_id: Optional[str], provided_preview: Optional[str])
|
|
| 298 |
return ""
|
| 299 |
|
| 300 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 301 |
# -------------------------------
|
| 302 |
# Main NL2SQL endpoint
|
| 303 |
# -------------------------------
|
|
|
|
| 298 |
return ""
|
| 299 |
|
| 300 |
|
| 301 |
+
@router.get("/health")
|
| 302 |
+
def health():
|
| 303 |
+
return {"status": "ok", "version": os.getenv("APP_VERSION", "dev")}
|
| 304 |
+
|
| 305 |
+
|
| 306 |
# -------------------------------
|
| 307 |
# Main NL2SQL endpoint
|
| 308 |
# -------------------------------
|