Move healthcheck endpoint to new file

This commit is contained in:
Jake Howard 2019-02-14 20:03:55 +00:00
parent 6dc9980fb0
commit a4e0f4ab54
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 9 additions and 7 deletions

View file

@ -1,11 +1,5 @@
from aiohttp import web from aiohttp import web
from actioner.clients import github from .healthcheck import healthcheck
async def healthcheck(request):
return web.json_response({
'github': github.get_user().login
})
def get_server(): def get_server():
app = web.Application() app = web.Application()

View file

@ -0,0 +1,8 @@
from aiohttp import web
from actioner.clients import github
async def healthcheck(request):
return web.json_response({
'github': github.get_user().login
})