diff options
Diffstat (limited to 'frontend')
| -rw-r--r-- | frontend/src/store/flowStore.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/frontend/src/store/flowStore.ts b/frontend/src/store/flowStore.ts index 6140339..3dac19f 100644 --- a/frontend/src/store/flowStore.ts +++ b/frontend/src/store/flowStore.ts @@ -1790,6 +1790,7 @@ const useFlowStore = create<FlowState>((set, get) => { try { const res = await fetch(`${API_BASE}/api/files/upload?user=${encodeURIComponent(getCurrentUser())}`, { method: 'POST', + headers: { ...getAuthHeaders() }, body: form, }); if (!res.ok) { @@ -1809,6 +1810,7 @@ const useFlowStore = create<FlowState>((set, get) => { deleteFile: async (fileId: string) => { const res = await fetch(`${API_BASE}/api/files/delete?user=${encodeURIComponent(getCurrentUser())}&file_id=${encodeURIComponent(fileId)}`, { method: 'POST', + headers: { ...getAuthHeaders() }, }); if (!res.ok) { throw new Error(await res.text()); |
