mirror of
https://github.com/artemium428/tvsignals-to-tg.git
synced 2026-09-15 17:16:21 +00:00
Accept HEAD on /health for uptime monitors.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
b9a9ed1636
commit
c8b5eb741f
1 changed files with 1 additions and 1 deletions
|
|
@ -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"}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue