def delete(self, todo_id): return STORAGE_ENGINE.remove_item(USER_ID, todo_id)
def post(self): return STORAGE_ENGINE.create_item(USER_ID, request.json.get('data'))
def put(self, todo_id): return STORAGE_ENGINE.update_item(USER_ID, todo_id, request.json)
def get(self, todo_id=None): if todo_id is not None: return STORAGE_ENGINE.get_item(USER_ID, todo_id) return STORAGE_ENGINE.get_items(USER_ID)
def put(self, todo_id): return STORAGE_ENGINE.update_item( USER_ID, todo_id, request.json )
def post(self): return STORAGE_ENGINE.create_item( USER_ID, request.json.get('data') )