Centre de notification

This commit is contained in:
ocroguennec committed 2026-06-18 20:26:23 +02:00
1 parent bfc97442d9
commit 5bbbbfa956
13 files changed
+3685

No files matched your search

+2
View File
@@ -58,6 +58,8 @@ export const api = {
fetch(BASE + path, { method: 'DELETE', headers: authHeaders() }).then(handle),
upload: (path, formData) =>
fetch(BASE + path, { method: 'POST', body: formData, headers: authHeaders() }).then(handle),
postForm: (path, formData) =>
fetch(BASE + path, { method: 'POST', body: formData, headers: authHeaders() }).then(handle),
blob: (path) =>
fetch(BASE + path, { headers: authHeaders() }).then(async res => {
if (!res.ok) { const t = await res.text(); throw new Error(t || res.statusText); }