Commit fec6a8dc authored by Willard's avatar Willard

Add empty functions for favorite and review

parent b7f0c94f
......@@ -92,3 +92,23 @@ def verify_token(token):
def get_auth_token():
token = generate_token(g.user)
return jsonify({'token': token.decode('ascii'), 'duration': 600})
@app.route('/api/dish/<int:dish_id>/favorite', methods=['POST'])
@auth.login_required
def favorite_dish(dish_id):
pass
@app.route('/api/dish/<int:dish_id>/review', methods=['POST'])
@auth.login_required
def review_dish(dish_id):
pass
@app.route('/api/stall/<int:stall_id>/favorite', methods=['POST'])
@auth.login_required
def favorite_stall(stall_id):
pass
@app.route('/api/stall/<int:stall_id>/review', methods=['POST'])
@auth.login_required
def review_stall(stall_id):
pass
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