Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -59,4 +59,12 @@ async def webhook(req: Request):
|
|
| 59 |
require_key(req)
|
| 60 |
body = await req.json()
|
| 61 |
append_jsonl(WH_PATH, {"t": int(time.time()), "body": body})
|
| 62 |
-
return {"ok": True}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
require_key(req)
|
| 60 |
body = await req.json()
|
| 61 |
append_jsonl(WH_PATH, {"t": int(time.time()), "body": body})
|
| 62 |
+
return {"ok": True}
|
| 63 |
+
|
| 64 |
+
@app.get("/api/health")
|
| 65 |
+
async def api_health():
|
| 66 |
+
return {"ok": True, "ts": int(time.time())}
|
| 67 |
+
|
| 68 |
+
@app.get("/healthz")
|
| 69 |
+
async def healthz():
|
| 70 |
+
return {"ok": True, "ts": int(time.time())}
|