def post(self): args = json.loads(request.data) TodoModel.add_item(args['item']) return jsonify({'success': True})