add healthcheck
This commit is contained in:
parent
b627d298a9
commit
4c017ff4a4
4
app.py
4
app.py
@ -24,6 +24,10 @@ async def shutdown_event():
|
|||||||
await matrix_client.logout()
|
await matrix_client.logout()
|
||||||
await matrix_client.close()
|
await matrix_client.close()
|
||||||
|
|
||||||
|
@app.get("/health")
|
||||||
|
async def health_check():
|
||||||
|
return {"status": "ok", "message": "Service is running"}
|
||||||
|
|
||||||
@app.post("/mailgun-webhook")
|
@app.post("/mailgun-webhook")
|
||||||
async def mailgun_webhook(
|
async def mailgun_webhook(
|
||||||
request: Request,
|
request: Request,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user