10 lines
251 B
Python
10 lines
251 B
Python
|
def setup_routes(app):
|
||
|
app.router.add_route('GET','/', info)
|
||
|
app.router.add_route('GET', '/login', info)
|
||
|
app.router.add_route('POST', '/login', info)
|
||
|
|
||
|
async def info(request):
|
||
|
return json_response({
|
||
|
'this is': 'working'
|
||
|
})
|