From c8b5eb741f45cd02c0ad6a4be14df4077f644b36 Mon Sep 17 00:00:00 2001 From: Artemii Peretiachenko Date: Fri, 24 Jul 2026 16:50:07 +0200 Subject: [PATCH] Accept HEAD on /health for uptime monitors. Co-authored-by: Cursor --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 5359224..e3f9801 100644 --- a/app/main.py +++ b/app/main.py @@ -52,7 +52,7 @@ def _parse_signal_body(raw: bytes) -> SignalPayload: raise HTTPException(status_code=422, detail=json.loads(exc.json())) from exc -@app.get("/health") +@app.api_route("/health", methods=["GET", "HEAD"]) async def health() -> dict[str, str]: return {"status": "ok"}