(arg: string | string[])
| 39 | } |
| 40 | |
| 41 | export function restPath(arg: string | string[]) { |
| 42 | let a = copyOrSplit(arg); |
| 43 | a = a.filter(e => e !== '*'); |
| 44 | return a.join('/'); |
| 45 | } |
| 46 | |
| 47 | export function endpointPath(arg: string | string[]) { |
| 48 | // if the argument count is even, the last argument is an id |
no test coverage detected