def put(id, user, name, color): notebook = NotebookRepository.update(user=user, id=id, name=name, color=color) return jsonify({"data": notebook})
def get(user): notebooks = NotebookRepository.getAll(user=user) return jsonify({"data": notebooks})
def post(user, name, color): notebook = NotebookRepository.create(user=user, name=name, color=color) return jsonify({"data": notebook})
def delete(id, user): notebook = NotebookRepository.delete(user=user, id=id) return jsonify({"data": notebook})