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