remove data
This commit is contained in:
+8
-8
@@ -540,14 +540,14 @@ def pending_loans():
|
||||
|
||||
@app.route('/loan/repay', methods=["POST"])
|
||||
def repay_loans():
|
||||
try:
|
||||
data = request.json
|
||||
if not data:
|
||||
return {
|
||||
"message": "Please provide pin,loan_id,accountID",
|
||||
"data": None,
|
||||
"error": "Bad request"
|
||||
}, 400
|
||||
# try:
|
||||
# data = request.json
|
||||
# if not data:
|
||||
# return {
|
||||
# "message": "Please provide pin,loan_id,accountID",
|
||||
# "data": None,
|
||||
# "error": "Bad request"
|
||||
# }, 400
|
||||
# validate input
|
||||
# bvn = data["bvn"]
|
||||
# accountid = data["accountid"]
|
||||
|
||||
Reference in New Issue
Block a user