Added routes

This commit is contained in:
CHIEFSOFT\ameye
2025-04-12 23:25:22 -04:00
parent af7d2099b9
commit 31a8606679
4 changed files with 46 additions and 26 deletions
+1 -2
View File
@@ -1,5 +1,4 @@
from .authentication import auth_bp
from .eligibility import eligibility_bp
from .loan import loan_bp
# from .repayment import repayment_bp
from .autocall import autocall_bp
+23
View File
@@ -0,0 +1,23 @@
from flask import Blueprint, request, jsonify, current_app
import requests
from app.config import settings
from app.utils.auth import get_headers
from app.utils.logger import logger
autocall_bp = Blueprint("autocall", __name__)
@autocall_bp.route("/refresh-verify-disbursement", methods=["GET"])
def verify_transaction():
data = request.json()
api_url = f"{BASE_URL}/Disbursement"
logger.info(f"Calling Verify Components")
return jsonify(data), 200
@autocall_bp.route("/refresh-disbursement", methods=["GET"])
def disbursement():
data = request.json()
api_url = f"{BASE_URL}/Disbursement"
logger.info(f"Calling Disbursement Components")
return jsonify(data), 200