(relativePath)
| 207 | }; |
| 208 | |
| 209 | export const deleteInputItem = async (relativePath) => { |
| 210 | const url = getApiUrl(`/inputs/${encodeURIComponent(relativePath)}`); |
| 211 | const response = await fetch(url, { method: 'DELETE' }); |
| 212 | if (!response.ok) { |
| 213 | await handleApiError(response, `delete input item: ${relativePath}`); |
| 214 | } |
| 215 | return response.json(); // Or just check status if no body expected on success |
| 216 | }; |
| 217 | |
| 218 | export const createInputDirectory = async (relativePath) => { |
| 219 | const url = getApiUrl('/inputs/directory'); |
no test coverage detected