(path: HTTPPath | undefined)
| 11 | * @internal |
| 12 | */ |
| 13 | export function getDynamicParams(path: HTTPPath | undefined): { raw: string, name: string }[] | undefined { |
| 14 | return path |
| 15 | ? standardizeHTTPPath(path).match(/\/\{[^}]+\}/g)?.map(v => ({ |
| 16 | raw: v, |
| 17 | name: v.match(/\{\+?([^}]+)\}/)![1]!, |
| 18 | })) |
| 19 | : undefined |
| 20 | } |
no test coverage detected