NestJS · Middle · Question 70 of 75
After upgrading to NestJS 11 (Express 5), a route @Get('files/*') stops matching as before. Why?
- 1GET routes need
@All()now - ✓Correct answer: Express 5 changed path syntax: wildcards must be named, e.g.
files/*splat - 3NestJS 11 removed wildcard routes completely
Explanation
Express 5 uses a newer path-to-regexp. Optional parts use braces too, like /users{/:id}. The Nest migration guide lists such changes.