mirror of
https://github.com/bsedin/matrix-webhook.git
synced 2026-04-09 03:15:40 +00:00
add a healthcheck for load balancers
This commit is contained in:
@@ -18,6 +18,11 @@ async def matrix_webhook(request):
|
||||
This one handles a POST, checks its content, and forwards it to the matrix room.
|
||||
"""
|
||||
LOGGER.debug(f"Handling {request=}")
|
||||
|
||||
# healthcheck
|
||||
if request.rel_url.path == "/health":
|
||||
return utils.create_json_response(HTTPStatus.OK, "OK")
|
||||
|
||||
data_b = await request.read()
|
||||
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user