mod for apigw
This commit is contained in:
10
src/main.js
10
src/main.js
@@ -39,14 +39,14 @@ var auth = createAuth({
|
||||
options:{
|
||||
notFoundRedirect: '/auth/login',
|
||||
authRedirect: '/auth/login',
|
||||
loginData: {url: 'api/auth/login', method: 'POST', redirect: '/'},
|
||||
logoutData: {redirect: '/auth/login'},
|
||||
fetchData: {url: 'api/auth/fetch-user', method: 'GET', enabled: true},
|
||||
refreshData: {url: 'api/auth/refresh-token', method: 'GET', enabled: true}
|
||||
loginData: {url: '../api/auth/login', method: 'POST', redirect: '/'},
|
||||
logoutData: {url:'../api/auth/logout', redirect: '/auth/login'},
|
||||
fetchData: {url: '../api/auth/fetch-user', 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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user