techsd66 commited on
Commit
25a1c18
·
verified ·
1 Parent(s): 99fe90b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
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())}