Spaces:
Sleeping
Sleeping
Commit
·
d884e14
1
Parent(s):
a499383
Add unauthenticated GET /health root health check endpoint for integrations
Browse files
app.py
CHANGED
|
@@ -276,6 +276,11 @@ def root_index():
|
|
| 276 |
}
|
| 277 |
|
| 278 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 279 |
@api.get("/api/attributes")
|
| 280 |
def list_attributes(_: None = Depends(_require_auth)):
|
| 281 |
items = {}
|
|
|
|
| 276 |
}
|
| 277 |
|
| 278 |
|
| 279 |
+
@api.get("/health")
|
| 280 |
+
def health_root():
|
| 281 |
+
return {"status": "ok"}
|
| 282 |
+
|
| 283 |
+
|
| 284 |
@api.get("/api/attributes")
|
| 285 |
def list_attributes(_: None = Depends(_require_auth)):
|
| 286 |
items = {}
|