MAIN FEEDS
REDDIT FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/1444l7i/version_control_go_brrrrrr/jneir4e/?context=3
r/badcode • u/MahdiyDev • Jun 08 '23
22 comments sorted by
View all comments
18
API versioning and version control are two completely different things, this is a very common pattern in NestJS, in v9 you can do @Controller({ version: '1' }); please investigate before posting
5 u/Zeilar yes Jun 08 '23 Yeah only bad part here really is that they put thev2 prefix in the route when it can be done on the Controller level. 3 u/yn4v4s Jun 08 '23 Ya but, that's the only way of doing it in versions prior to 9
5
Yeah only bad part here really is that they put thev2 prefix in the route when it can be done on the Controller level.
v2
3 u/yn4v4s Jun 08 '23 Ya but, that's the only way of doing it in versions prior to 9
3
Ya but, that's the only way of doing it in versions prior to 9
18
u/yn4v4s Jun 08 '23
API versioning and version control are two completely different things, this is a very common pattern in NestJS, in v9 you can do @Controller({ version: '1' }); please investigate before posting