diff --git a/app/config.py b/app/config.py index 41d7c51..ccb6025 100644 --- a/app/config.py +++ b/app/config.py @@ -5,8 +5,8 @@ class Config: """Base configuration for Flask app""" SECRET_KEY = os.getenv("SECRET_KEY", "supersecretkey") - SIMBRELLA_AUTH_BASE_URL = "https://coreapi.dev.simbrellang.net/v1/api/auth" - SIMBRELLA_BASE_URL = "https://coreapi.dev.simbrellang.net/v1/api/salary" + BANK_CALL_AUTH_BASE_URL = "https://coreapi.dev.simbrellang.net/v1/api/auth" + BANK_CALL_BASE_URL = "https://coreapi.dev.simbrellang.net/v1/api/salary" JWT_SECRET_KEY = os.getenv("JWT_SECRET_KEY", "your_jwt_secret") DEBUG = True diff --git a/app/integrations/kafka.py b/app/integrations/kafka.py index 385937a..85bee8b 100644 --- a/app/integrations/kafka.py +++ b/app/integrations/kafka.py @@ -7,7 +7,7 @@ import requests class KafkaIntegration: - BASE_URL = settings.SIMBRELLA_BASE_URL + BASE_URL = settings.BANK_CALL_BASE_URL _consumer = None diff --git a/app/routes/authentication.py b/app/routes/authentication.py index bba08a7..5708265 100644 --- a/app/routes/authentication.py +++ b/app/routes/authentication.py @@ -5,8 +5,8 @@ from app.config import settings auth_bp = Blueprint("auth", __name__) -AUTH_BASE_URL = settings.SIMBRELLA_AUTH_BASE_URL -BASE_URL = settings.SIMBRELLA_BASE_URL +AUTH_BASE_URL = settings.BANK_CALL_AUTH_BASE_URL +BASE_URL = settings.BANK_CALL_BASE_URL @auth_bp.route("/health", methods=["GET"]) diff --git a/app/routes/eligibility.py b/app/routes/eligibility.py index bf91ce2..9ad0fcc 100644 --- a/app/routes/eligibility.py +++ b/app/routes/eligibility.py @@ -5,7 +5,7 @@ from app.utils.auth import get_headers eligibility_bp = Blueprint("eligibility", __name__) -BASE_URL = settings.SIMBRELLA_BASE_URL +BASE_URL = settings.BANK_CALL_BASE_URL @eligibility_bp.route("/check", methods=["POST"]) diff --git a/app/routes/loan.py b/app/routes/loan.py index bcb3a3e..562ce22 100644 --- a/app/routes/loan.py +++ b/app/routes/loan.py @@ -5,7 +5,7 @@ from app.utils.auth import get_headers loan_bp = Blueprint("loan", __name__) -BASE_URL = settings.SIMBRELLA_BASE_URL +BASE_URL = settings.BANK_CALL_BASE_URL @loan_bp.route("/select-offer", methods=["POST"])