( path: string, method: string | number, version: VersionValue, )
| 13 | `Mapped {${path}, ${RequestMethod[method]}} route`; |
| 14 | |
| 15 | export const VERSIONED_ROUTE_MAPPED_MESSAGE = ( |
| 16 | path: string, |
| 17 | method: string | number, |
| 18 | version: VersionValue, |
| 19 | ) => { |
| 20 | const controllerVersions = Array.isArray(version) ? version : [version]; |
| 21 | const versions = controllerVersions |
| 22 | .map(version => (version === VERSION_NEUTRAL ? 'Neutral' : version)) |
| 23 | .join(','); |
| 24 | |
| 25 | return `Mapped {${path}, ${RequestMethod[method]}} (version: ${versions}) route`; |
| 26 | }; |
| 27 | |
| 28 | export const CONTROLLER_MAPPING_MESSAGE = (name: string, path: string) => |
| 29 | `${name} {${path}}:`; |
no outgoing calls
no test coverage detected