From 4c017ff4a43cbc41400c22471c9cde50a494eced Mon Sep 17 00:00:00 2001 From: DJ Gillespie Date: Wed, 10 Sep 2025 15:59:09 -0600 Subject: [PATCH] add healthcheck --- app.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app.py b/app.py index 153d43f..e270bc6 100644 --- a/app.py +++ b/app.py @@ -24,6 +24,10 @@ async def shutdown_event(): await matrix_client.logout() await matrix_client.close() +@app.get("/health") +async def health_check(): + return {"status": "ok", "message": "Service is running"} + @app.post("/mailgun-webhook") async def mailgun_webhook( request: Request,