This commit is contained in:
2024-03-18 21:20:23 +01:00
parent 6ef8573032
commit d4edc66c2c

View File

@@ -13,11 +13,17 @@ const bicBankToAdd = ref("")
const bankData = ref({}) const bankData = ref({})
const reqData = ref({}) const reqData = ref({})
const axiosBaseUrl = "https://backend.spaces.software"
const setupPage = async () => { const setupPage = async () => {
if(route.query.reqId) { if(route.query.reqId) {
const {data,error} = await axios({ const {data,error} = await axios({
url:`http://localhost:3002/banking/requisitions/${route.query.reqId}`, url:`${axiosBaseUrl}/banking/requisitions/${route.query.reqId}`,
method: "GET" method: "GET",
auth: {
username: "frontend",
password: "Xt9Zn9RDSpdbr"
}
}) })
if(data) { if(data) {
@@ -29,8 +35,12 @@ const setupPage = async () => {
const checkBIC = async () => { const checkBIC = async () => {
const {data,error} = await axios({ const {data,error} = await axios({
url:`http://localhost:3002/banking/institutions/${bicBankToAdd.value}`, url:`${axiosBaseUrl}/banking/institutions/${bicBankToAdd.value}`,
method: "GET", method: "GET",
auth: {
username: "frontend",
password: "Xt9Zn9RDSpdbr"
}
}) })
if(data) { if(data) {
@@ -44,8 +54,12 @@ const checkBIC = async () => {
const generateLink = async () => { const generateLink = async () => {
const {data,error} = await axios({ 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", method: "POST",
auth: {
username: "frontend",
password: "Xt9Zn9RDSpdbr"
}
}) })
console.log(data) console.log(data)