product id sent
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user