This commit is contained in:
		@@ -22,8 +22,8 @@ class MealIndividualResource(Resource):
 | 
			
		||||
            abort(406, error.messages)
 | 
			
		||||
 | 
			
		||||
    def get(self, mealid):
 | 
			
		||||
        meals = Meal.query.filter_by(id=mealid).first_or_404()
 | 
			
		||||
        return self.mealschema.dump(list(meals)), 200
 | 
			
		||||
        meal = Meal.query.filter_by(id=mealid).first_or_404()
 | 
			
		||||
        return self.mealschema.dump(meal), 200
 | 
			
		||||
 | 
			
		||||
    def delete(self, mealid):
 | 
			
		||||
        meal = Meal.query.filter_by(id=mealid).first_or_404()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user