Merge branch 'dev' into 'feature/auth'

# Conflicts:
#   src/router.js
#   src/utils/login.js
This commit is contained in:
T'JAMPENS QUENTIN p2406187
2025-11-28 08:27:56 +00:00
28 changed files with 4067 additions and 54 deletions
+21
View File
@@ -0,0 +1,21 @@
export default async function getUserNotifications() {
try {
const response = await fetch(
'http://localhost:8000/api/users/1/notifications',
{
method: 'GET',
credentials: 'include',
headers: {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
}
);
const data = await response.json();
return data.data;
} catch (err) {
console.error("Erreur :", err);
return null;
}
}