fix(health): support HEAD method for health endpoint
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user