Rammohan0504 commited on
Commit
fe30914
·
verified ·
1 Parent(s): 51026ee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -385,6 +385,8 @@ def get_addons():
385
  except Exception as e:
386
  print(f"Error fetching add-ons: {e}")
387
  return jsonify({"success": False, "error": "Unable to fetch add-ons. Please try again later."})
 
 
388
  @app.route("/cart/update_quantity", methods=["POST"])
389
  def update_quantity():
390
  data = request.json # Extract JSON data from the request
@@ -440,6 +442,9 @@ def update_quantity():
440
  except Exception as e:
441
  print(f"Error updating quantity: {str(e)}")
442
  return jsonify({"success": False, "error": str(e)}), 500
 
 
 
443
  @app.route("/checkout", methods=["POST"])
444
  def checkout():
445
  email = session.get('user_email')
 
385
  except Exception as e:
386
  print(f"Error fetching add-ons: {e}")
387
  return jsonify({"success": False, "error": "Unable to fetch add-ons. Please try again later."})
388
+
389
+
390
  @app.route("/cart/update_quantity", methods=["POST"])
391
  def update_quantity():
392
  data = request.json # Extract JSON data from the request
 
442
  except Exception as e:
443
  print(f"Error updating quantity: {str(e)}")
444
  return jsonify({"success": False, "error": str(e)}), 500
445
+
446
+
447
+
448
  @app.route("/checkout", methods=["POST"])
449
  def checkout():
450
  email = session.get('user_email')