Skip to content

Commit

Permalink
Change healthz to a get call
Browse files Browse the repository at this point in the history
  • Loading branch information
heyitsaamir committed Jul 3, 2024
1 parent 126c9d7 commit 66c4a8d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 66c4a8d

Please sign in to comment.