mod for apigw
This commit is contained in:
10
src/main.js
10
src/main.js
@@ -39,14 +39,14 @@ var auth = createAuth({
|
|||||||
options:{
|
options:{
|
||||||
notFoundRedirect: '/auth/login',
|
notFoundRedirect: '/auth/login',
|
||||||
authRedirect: '/auth/login',
|
authRedirect: '/auth/login',
|
||||||
loginData: {url: 'api/auth/login', method: 'POST', redirect: '/'},
|
loginData: {url: '../api/auth/login', method: 'POST', redirect: '/'},
|
||||||
logoutData: {redirect: '/auth/login'},
|
logoutData: {url:'../api/auth/logout', redirect: '/auth/login'},
|
||||||
fetchData: {url: 'api/auth/fetch-user', method: 'GET', enabled: true},
|
fetchData: {url: '../api/auth/fetch-user', method: 'GET', enabled: true},
|
||||||
refreshData: {url: 'api/auth/refresh-token', method: 'GET', enabled: true}
|
refreshData: {url: '../api/auth/refresh-token', method: 'GET', enabled: true}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
axios.defaults.baseURL ='https://hermione-nu6mvqujsq-ey.a.run.app/' // import.meta.env.VITE_BACKEND_URL;
|
axios.defaults.baseURL = import.meta.env.VITE_BACKEND_URL;
|
||||||
|
|
||||||
const app = createApp(App);
|
const app = createApp(App);
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ const login = async () => {
|
|||||||
},
|
},
|
||||||
redirect:'/',
|
redirect:'/',
|
||||||
fetchUser: true,
|
fetchUser: true,
|
||||||
url: '/api/auth/login'
|
//url: '/api/auth/login'
|
||||||
})
|
})
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.log( 'Error ' + err)
|
console.log( 'Error ' + err)
|
||||||
|
|||||||
Reference in New Issue
Block a user