(path: HTTPPath)
| 2 | import { standardizeHTTPPath } from '@orpc/openapi-client/standard' |
| 3 | |
| 4 | export function toNestPattern(path: HTTPPath): string { |
| 5 | return standardizeHTTPPath(path) |
| 6 | .replace(/\/\{\+([^}]+)\}/g, '/*$1') |
| 7 | .replace(/\/\{([^}]+)\}/g, '/:$1') |
| 8 | } |
no test coverage detected