From 66c4a8d8e17a99af11608365b99eca21df87b7bc Mon Sep 17 00:00:00 2001 From: heyitsaamir Date: Tue, 2 Jul 2024 23:34:42 -0700 Subject: [PATCH] Change healthz to a get call --- src/api.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api.py b/src/api.py index 42ffe7c..8970c55 100644 --- a/src/api.py +++ b/src/api.py @@ -25,9 +25,9 @@ async def on_messages(req: web.Request) -> web.Response: return web.Response(status=HTTPStatus.OK) -@routes.get('/ping') -async def ping(req: web.Request) -> web.Response: - return web.Response(text='pong') +@routes.get('/api/healthz') +async def ping(_req: web.Request) -> web.Response: + return web.Response(status=HTTPStatus.OK, text='pong') api = web.Application(middlewares=[aiohttp_error_middleware])