NestJS · Middle · Question 59 of 75
What is middleware bound in configure(consumer) NOT able to see?
- 1The request URL
- ✓Correct answer: Which controller method will handle the request and its metadata
- 3The request headers
Explanation
That's why role checks belong in guards. Middleware suits generic things like logging, request IDs or body parsing.