Skip to content

Commit 9c5d6e8

Browse files
committed
fix(health): accept HEAD requests for UptimeRobot free tier compatibility
1 parent cceeb3c commit 9c5d6e8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backend/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ async def lifespan(app: FastAPI):
4848
app.include_router(router)
4949

5050

51-
@app.get("/health")
51+
@app.api_route("/health", methods=["GET", "HEAD"])
5252
def health():
5353
return {"status": "ok", "version": "2.0.0"}
5454

0 commit comments

Comments
 (0)