Rammohan0504 commited on
Commit
93dbe9c
·
verified ·
1 Parent(s): cfb2fab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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