(relativePath = '.')
| 160 | // --- Input API --- |
| 161 | |
| 162 | export const fetchInputStructure = async (relativePath = '.') => { |
| 163 | const url = getApiUrl(`/inputs/structure/${encodeURIComponent(relativePath)}`); |
| 164 | const response = await fetch(url); |
| 165 | if (!response.ok) { |
| 166 | await handleApiError(response, 'fetch input structure'); |
| 167 | } |
| 168 | return response.json(); |
| 169 | }; |
| 170 | |
| 171 | export const uploadInputFiles = async (relativePath, files) => { |
| 172 | const url = getApiUrl(`/inputs/upload/${encodeURIComponent(relativePath)}`); |
no test coverage detected