Excluding /health from logger middleware
This commit is contained in:
parent
509462e118
commit
791b270213
1 changed files with 1 additions and 1 deletions
|
|
@ -67,6 +67,6 @@ import { WaitingListModule } from './waitingList/module'
|
|||
})
|
||||
export class AppModule implements NestModule {
|
||||
configure(consumer: MiddlewareConsumer) {
|
||||
consumer.apply(LoggerMiddleware).forRoutes('*')
|
||||
consumer.apply(LoggerMiddleware).exclude('/health').forRoutes('*')
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue