(id: number, name: string)
| 74 | }); |
| 75 | |
| 76 | const duplicateCollection = (id: number, name: string): Promise<Response> => |
| 77 | fetch(BASE_PATH + `api/collection/${id}/duplicate`, { |
| 78 | method: 'POST', |
| 79 | headers: DEFAULT_HEADERS, |
| 80 | body: JSON.stringify({ |
| 81 | name: name, |
| 82 | }), |
| 83 | }); |
| 84 | |
| 85 | const moveCollection = ( |
| 86 | id: number, |