Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -766,7 +766,7 @@ def add_suggestion_to_cart():
|
|
766 |
return jsonify({"success": False, "error": str(e)})
|
767 |
|
768 |
|
769 |
-
|
770 |
def add_to_cart():
|
771 |
data = request.json
|
772 |
item_name = data.get('itemName').strip()
|
|
|
766 |
return jsonify({"success": False, "error": str(e)})
|
767 |
|
768 |
|
769 |
+
@app.route('/cart/add', methods=['POST'])
|
770 |
def add_to_cart():
|
771 |
data = request.json
|
772 |
item_name = data.get('itemName').strip()
|