change the bank call base url
This commit was merged in pull request #6.
This commit is contained in:
@@ -5,7 +5,6 @@ from app.config import settings
|
||||
|
||||
auth_bp = Blueprint("auth", __name__)
|
||||
|
||||
AUTH_BASE_URL = settings.BANK_CALL_AUTH_BASE_URL
|
||||
BASE_URL = settings.BANK_CALL_BASE_URL
|
||||
|
||||
|
||||
@@ -17,7 +16,7 @@ def health():
|
||||
@auth_bp.route("/login", methods=["POST"])
|
||||
def login():
|
||||
data = request.json
|
||||
api_url = f"{AUTH_BASE_URL}/login"
|
||||
api_url = f"{BASE_URL}/login"
|
||||
|
||||
response = requests.post(api_url, json=data)
|
||||
if response.status_code == 200:
|
||||
|
||||
Reference in New Issue
Block a user