NestJS · Junior · Question 38 of 75

What is middleware in Nest?

Explanation

It's configured in a module's configure(consumer) method with consumer.apply(LoggerMiddleware).forRoutes('users').

Further reading

Problem with a question

NestJS · Junior · question 38

Test yourself

Take the NestJS · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz