diff --git a/services/web/project/__init__.py b/services/web/project/__init__.py index d35f228..072c951 100644 --- a/services/web/project/__init__.py +++ b/services/web/project/__init__.py @@ -526,3 +526,18 @@ def myproduct(current_user): } return jsonify(myproduct_data=myproduct_data) + +@app.route("/panel/myproduct/subscription") +@token_required +def subscription_start(current_user): + product_id = request.args.get('product_id') + print(product_id) + if not product_id: + return { + "message": "Please provide product_id", + "data": None, + "error": "Bad request" + }, 400 + + print(product_id) + return jsonify(myproduct_data=myproduct_data) \ No newline at end of file