NestJS · Senior · Question 51 of 75

How can you implement API versioning without duplicating whole controllers?

Explanation

VERSION_NEUTRAL routes serve all versions; only routes whose contract changed need a new version.

Further reading

Problem with a question

NestJS · Senior · question 51

Test yourself

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

Take this quiz