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

Method configure

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

Source from the content-addressed store, hash-verified

46@Module({ imports: [ModuleX] })
47class ModuleA {
48 configure(consumer: MiddlewareConsumer) {
49 consumer
50 .apply((req, res, next) => res.send(RETURN_VALUE_A))
51 .forRoutes('hello')
52 .apply((req, res, next) => res.send(RETURN_VALUE_A))
53 .forRoutes('ping');
54 }
55}
56
57@Module({

Callers

nothing calls this directly

Calls 3

forRoutesMethod · 0.65
applyMethod · 0.65
sendMethod · 0.45

Tested by

no test coverage detected