Move healthcheck endpoint to new file
This commit is contained in:
parent
6dc9980fb0
commit
a4e0f4ab54
2 changed files with 9 additions and 7 deletions
|
@ -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()
|
||||||
|
|
8
actioner/web/healthcheck.py
Normal file
8
actioner/web/healthcheck.py
Normal 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
|
||||||
|
})
|
Reference in a new issue