From d4edc66c2ca3c1df2162f753854ad3da1e4fdbc7 Mon Sep 17 00:00:00 2001 From: flfeders Date: Mon, 18 Mar 2024 21:20:23 +0100 Subject: [PATCH] Changes --- spaces/pages/settings/banking/index.vue | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/spaces/pages/settings/banking/index.vue b/spaces/pages/settings/banking/index.vue index 4d3d359..353f96d 100644 --- a/spaces/pages/settings/banking/index.vue +++ b/spaces/pages/settings/banking/index.vue @@ -13,11 +13,17 @@ const bicBankToAdd = ref("") const bankData = ref({}) const reqData = ref({}) +const axiosBaseUrl = "https://backend.spaces.software" + const setupPage = async () => { if(route.query.reqId) { const {data,error} = await axios({ - url:`http://localhost:3002/banking/requisitions/${route.query.reqId}`, - method: "GET" + url:`${axiosBaseUrl}/banking/requisitions/${route.query.reqId}`, + method: "GET", + auth: { + username: "frontend", + password: "Xt9Zn9RDSpdbr" + } }) if(data) { @@ -29,8 +35,12 @@ const setupPage = async () => { const checkBIC = async () => { const {data,error} = await axios({ - url:`http://localhost:3002/banking/institutions/${bicBankToAdd.value}`, + url:`${axiosBaseUrl}/banking/institutions/${bicBankToAdd.value}`, method: "GET", + auth: { + username: "frontend", + password: "Xt9Zn9RDSpdbr" + } }) if(data) { @@ -44,8 +54,12 @@ const checkBIC = async () => { const generateLink = async () => { const {data,error} = await axios({ - url:`http://localhost:3002/banking/link?tenant=${dataStore.currentTenant}&institution_id=${bankData.value.id}`, + url:`${axiosBaseUrl}/banking/link?tenant=${dataStore.currentTenant}&institution_id=${bankData.value.id}`, method: "POST", + auth: { + username: "frontend", + password: "Xt9Zn9RDSpdbr" + } }) console.log(data)