Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1104,7 +1104,7 @@ def checkout():
|
|
| 1104 |
|
| 1105 |
|
| 1106 |
|
| 1107 |
-
@app.route('/cart/add', methods=['POST'])
|
| 1108 |
def add_to_cart():
|
| 1109 |
data = request.json
|
| 1110 |
item_name = data.get('itemName') # The item name to add to cart
|
|
|
|
| 1104 |
|
| 1105 |
|
| 1106 |
|
| 1107 |
+
@app.route('/cart/add', methods=['POST'], endpoint='add_to_cart_v2')
|
| 1108 |
def add_to_cart():
|
| 1109 |
data = request.json
|
| 1110 |
item_name = data.get('itemName') # The item name to add to cart
|