test
This commit is contained in:
parent
b40e51e557
commit
5fb1d2ddbd
@ -1,8 +1,4 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user