Merge branch 'dev' into 'feature/auth'

# Conflicts:
#   src/router.js
#   src/utils/login.js
This commit is contained in:
T'JAMPENS QUENTIN p2406187 committed 2025-11-28 08:27:56 +00:00
commit db4ef74699
28 files changed
+4067 -54

No files matched your search

+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;
}
}