Kind: Function
Source: packages/common/utils/shared.utils.ts
Part of: Common
Signature
tsfunction addLeadingSlash(path: string): string
Parameters
| Name | Type |
|---|---|
path | string |
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)
RouteDefinition—packages/core/router/paths-explorer.ts:17RoutePathFactory—packages/core/router/route-path-factory.ts:18RouteDefinition—packages/core/router/router-explorer.ts:49isRequestMethodAll—packages/core/router/utils/exclude-route.util.ts:5RouteInfoPathExtractor—packages/core/middleware/route-info-path-extractor.ts:16modulesContainer—packages/core/middleware/routes-mapper.ts:148anonymousMiddleware—packages/core/middleware/utils.ts:77NestApplication—packages/core/nest-application.ts:54
…and 1 more.
Was this page helpful?