Added /ping endpoint
This commit is contained in:
parent
b34aad1b11
commit
1efc0ac030
4
api.py
4
api.py
|
@ -112,6 +112,10 @@ async def token_test(request):
|
|||
return response.json({'ok': False, 'error': 'The token you have provided is not correct.'}, status=401)
|
||||
|
||||
return response.json({'ok': True, 'message': 'This token is valid :)'})
|
||||
|
||||
@bp.get("/ping")
|
||||
async def ping(request):
|
||||
return response.text("pong")
|
||||
|
||||
@bp.get("/welcome")
|
||||
async def welcome_app(request):
|
||||
|
|
Loading…
Reference in New Issue