Centre de notification

This commit is contained in:
2026-06-18 20:26:23 +02:00
parent bfc97442d9
commit 5bbbbfa956
13 changed files with 3685 additions and 0 deletions
+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); }