add healthcheck

This commit is contained in:
DJ Gillespie 2025-09-10 15:59:09 -06:00
parent b627d298a9
commit 4c017ff4a4

4
app.py
View File

@ -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,