archive
/
actioner
Archived
1
Fork 0

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 actioner.clients import github
async def healthcheck(request):
return web.json_response({
'github': github.get_user().login
})
from .healthcheck import healthcheck
def get_server():
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
})