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

Method configure

integration/hello-world/e2e/middleware-execute-order.spec.ts:37–43  ·  view source on GitHub ↗
(consumer: MiddlewareConsumer)

Source from the content-addressed store, hash-verified

35@Module({ imports: [GlobalModule, GlobalModule2] })
36class ModuleX {
37 configure(consumer: MiddlewareConsumer) {
38 consumer
39 .apply((req, res, next) => res.send(RETURN_VALUE_X))
40 .forRoutes('hello')
41 .apply((req, res, next) => res.send(RETURN_VALUE_X))
42 .forRoutes('ping');
43 }
44}
45
46@Module({ imports: [ModuleX] })

Callers

nothing calls this directly

Calls 3

forRoutesMethod · 0.65
applyMethod · 0.65
sendMethod · 0.45

Tested by

no test coverage detected