(id: number)
| 204 | }); |
| 205 | |
| 206 | const deleteScript = (id: number): Promise<Response> => |
| 207 | fetch(BASE_PATH + `api/scripts/${id}`, { |
| 208 | method: 'DELETE', |
| 209 | }); |
| 210 | |
| 211 | const runScript = (script: Script, envName?: string): Promise<Response> => |
| 212 | fetch(BASE_PATH + `api/run-script`, { |