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