()
| 143 | // --- Pipeline API --- |
| 144 | |
| 145 | export const fetchAvailablePipelines = async () => { |
| 146 | const response = await fetch(getApiUrl('/pipelines/available')); |
| 147 | if (!response.ok) throw new Error('Failed to fetch available pipelines'); |
| 148 | return response.json(); |
| 149 | }; |
| 150 | |
| 151 | export async function runPipeline(nodePath, parameters) { |
| 152 | const response = await fetch(`${API_BASE_URL}/pipelines/run`, { |
no test coverage detected