async def handler(request):
     return json({'injected': request.app.injected})
 def handler(request):
     return json({'user': request.get('user'), 'sidekick': request.get('sidekick')})
Beispiel #3
0
 async def handler(request):
     return json(request.json)
Beispiel #4
0
 async def handler(request):
     return json({"test": True})
Beispiel #5
0
 async def handler(request):
     assert request.json is None
     return json(request.json)