From 3e813af6214d5a6f21da242d44750e347428f689 Mon Sep 17 00:00:00 2001 From: "andrea.terzani" Date: Wed, 23 Oct 2024 17:47:30 +0000 Subject: [PATCH] Update main.js --- src/main.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.js b/src/main.js index 42d02db..de536ac 100644 --- a/src/main.js +++ b/src/main.js @@ -36,10 +36,10 @@ var auth = createAuth({ options:{ notFoundRedirect: '/auth/login', authRedirect: '/auth/login', - 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} + 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} } });