Commit bc2b90de authored by Willard's avatar Willard

Add message on successful delete

parent c1f994cd
...@@ -151,7 +151,9 @@ def delete_dish_review(dish_id, dish_review_id): ...@@ -151,7 +151,9 @@ def delete_dish_review(dish_id, dish_review_id):
return abort(401) return abort(401)
db.session.delete(review) db.session.delete(review)
db.session.commit() db.session.commit()
return 200 return {
'message': 'Review deleted successfully'
}, 200
@app.route('/api/dishes/<int:dish_id>/reviews', methods=['GET']) @app.route('/api/dishes/<int:dish_id>/reviews', methods=['GET'])
def dish_reviews(dish_id): def dish_reviews(dish_id):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment