From 070f59af977a97e624cdeb0cd2294d4142ed6a21 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Mon, 30 Dec 2024 11:43:17 -0500 Subject: [PATCH] New end point --- services/web/project/__init__.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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