(disabled: string[])
| 29 | }, |
| 30 | |
| 31 | async update(disabled: string[]): Promise<{ disabled: string[] }> { |
| 32 | return fetchJson('/api/tools', { |
| 33 | method: 'PUT', |
| 34 | headers, |
| 35 | body: JSON.stringify({ disabled }), |
| 36 | }) |
| 37 | }, |
| 38 | |
| 39 | async detail(name: string): Promise<ToolDetail> { |
| 40 | return fetchJson(`/api/tools/${encodeURIComponent(name)}`) |
nothing calls this directly
no test coverage detected