(method: string, path: string)
| 53 | * e.g. GET /accounts/{account_id}/workers/scripts → get_accounts_workers_scripts |
| 54 | */ |
| 55 | export function pathToToolName(method: string, path: string): string { |
| 56 | return `${method.toLowerCase()}_${pathToToolNameSuffix(path)}` |
| 57 | } |
| 58 | |
| 59 | function pathToToolNameSuffix(path: string): string { |
| 60 | let cleaned = path |
no test coverage detected