MCPcopy
hub / github.com/nestjs/nest / VERSIONED_ROUTE_MAPPED_MESSAGE

Function VERSIONED_ROUTE_MAPPED_MESSAGE

packages/core/helpers/messages.ts:15–26  ·  view source on GitHub ↗
(
  path: string,
  method: string | number,
  version: VersionValue,
)

Source from the content-addressed store, hash-verified

13 `Mapped {${path}, ${RequestMethod[method]}} route`;
14
15export 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
28export const CONTROLLER_MAPPING_MESSAGE = (name: string, path: string) =>
29 `${name} {${path}}:`;

Callers 1

applyCallbackToRouterMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected