| 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 = ( |