Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -256,7 +256,7 @@ def get_addons():
|
|
| 256 |
except Exception as e:
|
| 257 |
print(f"Error fetching add-ons: {e}")
|
| 258 |
return jsonify({"success": False, "error": "Unable to fetch add-ons. Please try again later."})
|
| 259 |
-
|
| 260 |
def update_quantity():
|
| 261 |
data = request.json # Extract JSON data from the request
|
| 262 |
email = data.get('email')
|
|
|
|
| 256 |
except Exception as e:
|
| 257 |
print(f"Error fetching add-ons: {e}")
|
| 258 |
return jsonify({"success": False, "error": "Unable to fetch add-ons. Please try again later."})
|
| 259 |
+
@app.route("/cart/update_quantity", methods=["POST"])
|
| 260 |
def update_quantity():
|
| 261 |
data = request.json # Extract JSON data from the request
|
| 262 |
email = data.get('email')
|