New end point
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user