fix(health): support HEAD method for health endpoint

This commit is contained in:
2025-11-22 11:54:06 -07:00
parent 65d5dfdbd6
commit 9dfa77633a
6 changed files with 588 additions and 2 deletions

View File

@@ -114,7 +114,7 @@ async def shutdown_event() -> None:
logger.info("Shutting down Gondulf IndieAuth Server")
@app.get("/health")
@app.api_route("/health", methods=["GET", "HEAD"])
async def health_check() -> JSONResponse:
"""
Health check endpoint.