Exemple #1
0
 def PUT(self, _id):
     data = json.request()
     db.todos.save(data, safe=True, multi=False)
     return web.no_content()
Exemple #2
0
 def POST(self):
     data = json.request()
     db.todos.save(data, safe=True)
     raise json.response(web.created, data=data)