change the bank call base url #6
+2
-2
@@ -5,8 +5,8 @@ class Config:
|
|||||||
"""Base configuration for Flask app"""
|
"""Base configuration for Flask app"""
|
||||||
|
|
||||||
SECRET_KEY = os.getenv("SECRET_KEY", "supersecretkey")
|
SECRET_KEY = os.getenv("SECRET_KEY", "supersecretkey")
|
||||||
BANK_CALL_AUTH_BASE_URL = "https://coreapi.dev.simbrellang.net/v1/api/auth"
|
# 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"
|
BANK_CALL_BASE_URL = "https://bank-emulator.dev.simbrellang.net"
|
||||||
JWT_SECRET_KEY = os.getenv("JWT_SECRET_KEY", "your_jwt_secret")
|
JWT_SECRET_KEY = os.getenv("JWT_SECRET_KEY", "your_jwt_secret")
|
||||||
DEBUG = True
|
DEBUG = True
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ from app.config import settings
|
|||||||
|
|
||||||
auth_bp = Blueprint("auth", __name__)
|
auth_bp = Blueprint("auth", __name__)
|
||||||
|
|
||||||
AUTH_BASE_URL = settings.BANK_CALL_AUTH_BASE_URL
|
|
||||||
BASE_URL = settings.BANK_CALL_BASE_URL
|
BASE_URL = settings.BANK_CALL_BASE_URL
|
||||||
|
|
||||||
|
|
||||||
@@ -17,7 +16,7 @@ def health():
|
|||||||
@auth_bp.route("/login", methods=["POST"])
|
@auth_bp.route("/login", methods=["POST"])
|
||||||
def login():
|
def login():
|
||||||
data = request.json
|
data = request.json
|
||||||
api_url = f"{AUTH_BASE_URL}/login"
|
api_url = f"{BASE_URL}/login"
|
||||||
|
|
||||||
response = requests.post(api_url, json=data)
|
response = requests.post(api_url, json=data)
|
||||||
if response.status_code == 200:
|
if response.status_code == 200:
|
||||||
|
|||||||
Reference in New Issue
Block a user