Accept HEAD on /health for uptime monitors.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Artemii Peretiachenko 2026-07-24 16:50:07 +02:00
parent b9a9ed1636
commit c8b5eb741f

View file

@ -52,7 +52,7 @@ def _parse_signal_body(raw: bytes) -> SignalPayload:
raise HTTPException(status_code=422, detail=json.loads(exc.json())) from exc 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]: async def health() -> dict[str, str]:
return {"status": "ok"} return {"status": "ok"}