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

Class TrailingSlashModule

integration/hello-world/e2e/middleware-fastify.spec.ts:57–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55
56 describe('manual routes', () => {
57 @Module({
58 controllers: [UsersController],
59 })
60 class TrailingSlashModule implements NestModule {
61 configure(consumer: MiddlewareConsumer) {
62 consumer
63 .apply(AuthMiddleware)
64 .forRoutes(
65 { path: 'users', method: RequestMethod.ALL },
66 { path: 'users/:id', method: RequestMethod.ALL },
67 );
68 }
69 }
70
71 beforeEach(async () => {
72 app = (

Callers

nothing calls this directly

Calls 1

ModuleFunction · 0.90

Tested by

no test coverage detected