Add healthcheck endpoint

This commit is contained in:
Jake Howard 2019-02-14 18:49:06 +00:00
parent be5d356059
commit 58b478c937
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 5 additions and 1 deletions

View file

@ -9,7 +9,6 @@ def main():
server = get_server()
web_process = Process(target=run_web_app, args=(server,))
web_process.start()
web_process.join()
if __name__ == '__main__':

View file

@ -1,6 +1,11 @@
from aiohttp import web
async def healthcheck(request):
return web.json_response({})
def get_server():
app = web.Application()
app.router.add_get("/healthcheck", healthcheck)
return app