def delete(self, meal_id:str) -> Response: delete_user = Meal.objects(id=meal_id).delete() return jsonify(delete_user)
def get(self, meal_id: str) -> Response: output = Meal.objects(id=meal_id) return jsonify(output)
def put(self, meal_id:str) -> Response: data = request.get_json() put_user = Meal.objects(id=meal_id).update(**data) return jsonify(put_user)
def get(self) -> Response: output = Meal.objects() return jsonify({'result': output})