progress on kafka
This commit is contained in:
Binary file not shown.
+6
-2
@@ -1,6 +1,8 @@
|
||||
from flask import Blueprint, request, jsonify, current_app
|
||||
import requests
|
||||
from app.utils.auth import get_headers
|
||||
from app.integrations import KafkaIntegration
|
||||
from threading import Thread
|
||||
|
||||
loan_bp = Blueprint("loan", __name__)
|
||||
|
||||
@@ -154,8 +156,10 @@ def disbursement():
|
||||
data = request.json
|
||||
api_url = f"{current_app.config['API_BASE_URL']}/Disbursement"
|
||||
|
||||
response = requests.post(api_url, json=data, headers=get_headers())
|
||||
return jsonify(response.json()), response.status_code
|
||||
return jsonify({"requestId": data["requestId"]}), 200
|
||||
|
||||
# response = requests.post(api_url, json=data, headers=get_headers())
|
||||
# return jsonify(response.json()), response.status_code
|
||||
|
||||
|
||||
@loan_bp.route("/collect-loan", methods=["POST"])
|
||||
|
||||
Reference in New Issue
Block a user