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