NestJS · Middle · Question 70 of 75

After upgrading to NestJS 11 (Express 5), a route @Get('files/*') stops matching as before. Why?

Explanation

Express 5 uses a newer path-to-regexp. Optional parts use braces too, like /users{/:id}. The Nest migration guide lists such changes.

Further reading

Problem with a question

NestJS · Middle · question 70

Test yourself

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

Take this quiz