diff --git a/services/web/project/__init__.py b/services/web/project/__init__.py index 6c6feba..0876149 100644 --- a/services/web/project/__init__.py +++ b/services/web/project/__init__.py @@ -310,12 +310,15 @@ def account_payments(current_user): @app.route("/panel/myproduct/dash") @token_required def myproduct(current_user): -# data = request.json -# print(data) - product_id = request.args - + product_id = request.form.get("product_id") + if not product_id: + return { + "message": "Please provide product_id", + "data": None, + "error": "Bad request" + }, 400 + print(product_id) - myproduct_data = { "myproduct_uid":"", "banner": "p4.jpg",