Spaces:
Sleeping
Sleeping
debug: add secret check to health endpoint
Browse files
app.py
CHANGED
|
@@ -88,4 +88,10 @@ async def cvat_webhook(request: Request):
|
|
| 88 |
|
| 89 |
@app.get("/health")
|
| 90 |
async def health():
|
| 91 |
-
return {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 88 |
|
| 89 |
@app.get("/health")
|
| 90 |
async def health():
|
| 91 |
+
return {
|
| 92 |
+
"status": "ok",
|
| 93 |
+
"dataset": DATASET,
|
| 94 |
+
"has_github_pat": bool(GITHUB_PAT),
|
| 95 |
+
"has_cvat_token": bool(CVAT_TOKEN),
|
| 96 |
+
"repo_ref": REPO_REF,
|
| 97 |
+
}
|