Function
updateFileOrder
(id: string, folder: string, order: string[])
Source from the content-addressed store, hash-verified
| 223 | } |
| 224 | |
| 225 | export function updateFileOrder(id: string, folder: string, order: string[]) { |
| 226 | return request<{ ok: boolean }>(`/api/projects/${id}/file-order`, { |
| 227 | method: 'POST', |
| 228 | body: JSON.stringify({ folder, order }) |
| 229 | }); |
| 230 | } |
| 231 | |
| 232 | export async function uploadFiles(projectId: string, files: File[], basePath?: string) { |
| 233 | const form = new FormData(); |
Tested by
no test coverage detected