diff --git a/frontend/index.html b/frontend/index.html index 5808160..6f7671b 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -1,8 +1,4 @@ - - - - diff --git a/frontend/src/api/axios.js b/frontend/src/api/axios.js index f168d8b..28c9c04 100644 --- a/frontend/src/api/axios.js +++ b/frontend/src/api/axios.js @@ -2,7 +2,7 @@ import axios from 'axios'; // Utiliser l'URL correcte pour le backend const api = axios.create({ - baseURL: 'http://localhost:1029/api', + baseURL: '/api', }); // Ajouter un intercepteur pour gérer les erreurs de réseau diff --git a/frontend/src/api/users.js b/frontend/src/api/users.js index 610c579..c507e54 100644 --- a/frontend/src/api/users.js +++ b/frontend/src/api/users.js @@ -65,7 +65,7 @@ export const userApi = { // Get user roles getUserRoles: async () => { try { - const response = await api.get('/api/users/roles/'); + const response = await api.get('/users/roles/'); return response.data; } catch (error) { throw new Error('Failed to fetch user roles: ' + error.message);