Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

nestjs forRoutes middlewarwe

export class AppModule implements NestModule {
  configure(consumer: MiddlewareConsumer) {
    consumer
      .apply(LoggerMiddleware)
      .forRoutes('cats', 'dogs');
  }
}
 
PREVIOUS NEXT
Tagged: #nestjs #forRoutes #middlewarwe
ADD COMMENT
Topic
Name
6+5 =