From 5fb1d2ddbdf693413104c4e93254dc960aaedbd2 Mon Sep 17 00:00:00 2001 From: Louis Mazin Date: Sun, 13 Sep 2026 19:58:47 +0200 Subject: [PATCH] test --- frontend/index.html | 4 ---- frontend/src/api/axios.js | 2 +- frontend/src/api/users.js | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) 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);