stranck-dev #31

Open
drew wants to merge 13 commits from stranck-dev into drew-dev
1 changed files with 4 additions and 0 deletions
Showing only changes of commit 1efc0ac030 - Show all commits

4
api.py
View File

@ -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': False, 'error': 'The token you have provided is not correct.'}, status=401)
return response.json({'ok': True, 'message': 'This token is valid :)'}) return response.json({'ok': True, 'message': 'This token is valid :)'})
@bp.get("/ping")
async def ping(request):
return response.text("pong")
@bp.get("/welcome") @bp.get("/welcome")
async def welcome_app(request): async def welcome_app(request):