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)