File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -311,11 +311,11 @@ export class AppModule implements NestModule {
311
311
configure(consumer : MiddlewareConsumer ) {
312
312
consumer
313
313
.apply (LoggerMiddleware )
314
- .forRoutes ({ path: ' cats' , method: RequestMethod .GET , version: ' 2' );
314
+ .forRoutes ({ path: ' cats' , method: RequestMethod .GET , version: ' 2' } );
315
315
}
316
316
}
317
317
```
318
318
319
319
With the code above, the ` LoggerMiddleware ` will only be applied to the version '2' of ` /cats ` endpoint.
320
320
321
- > info **Notice** Middlewares work with any versioning type described in the this section: ` URI ` , ` Header ` , ` Media Type ` or ` Custom ` .
321
+ > info ** Notice** Middlewares work with any versioning type described in the this section: ` URI ` , ` Header ` , ` Media Type ` or ` Custom ` .
You can’t perform that action at this time.
0 commit comments