Skip to content

addLeadingSlash

reference
1 min readUpdated

Kind: Function

Source: packages/common/utils/shared.utils.ts

Part of: Common

Signature

ts
function addLeadingSlash(path: string): string

Parameters

NameType
pathstring

Returns: string

Used by

9 references from 9 files. Each is a place in this repository where the symbol is actually used — go read one rather than trusting an example.

Imported by (9)

  • RouteDefinitionpackages/core/router/paths-explorer.ts:17
  • RoutePathFactorypackages/core/router/route-path-factory.ts:18
  • RouteDefinitionpackages/core/router/router-explorer.ts:49
  • isRequestMethodAllpackages/core/router/utils/exclude-route.util.ts:5
  • RouteInfoPathExtractorpackages/core/middleware/route-info-path-extractor.ts:16
  • modulesContainerpackages/core/middleware/routes-mapper.ts:148
  • anonymousMiddlewarepackages/core/middleware/utils.ts:77
  • NestApplicationpackages/core/nest-application.ts:54

…and 1 more.

Was this page helpful?

Download as PDF
addLeadingSlash — NestJS head-to-head