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

Method registerRouter

packages/core/nest-application.ts:207–213  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

205 }
206
207 public async registerRouter() {
208 await this.registerMiddleware(this.httpAdapter);
209
210 const prefix = this.config.getGlobalPrefix();
211 const basePath = addLeadingSlash(prefix);
212 this.routesResolver.resolve(this.httpAdapter, basePath);
213 }
214
215 public async registerRouterHooks() {
216 this.routesResolver.registerNotFoundHandler();

Callers 1

initMethod · 0.95

Calls 4

registerMiddlewareMethod · 0.95
addLeadingSlashFunction · 0.90
getGlobalPrefixMethod · 0.80
resolveMethod · 0.65

Tested by

no test coverage detected