request.form
This commit is contained in:
@@ -311,13 +311,14 @@ def account_payments(current_user):
|
|||||||
@token_required
|
@token_required
|
||||||
def myproduct(current_user):
|
def myproduct(current_user):
|
||||||
product_id = request.form.get("product_id")
|
product_id = request.form.get("product_id")
|
||||||
|
print(request.form)
|
||||||
if not product_id:
|
if not product_id:
|
||||||
return {
|
return {
|
||||||
"message": "Please provide product_id",
|
"message": "Please provide product_id",
|
||||||
"data": None,
|
"data": None,
|
||||||
"error": "Bad request"
|
"error": "Bad request"
|
||||||
}, 400
|
}, 400
|
||||||
|
|
||||||
print(product_id)
|
print(product_id)
|
||||||
myproduct_data = {
|
myproduct_data = {
|
||||||
"myproduct_uid":"",
|
"myproduct_uid":"",
|
||||||
|
|||||||
Reference in New Issue
Block a user