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