We have a RESTful API that we are doing in MVC3. We would like to have routing versions to go to different controllers. Our current routing is:
routes.MapRoute("api1", "{controller}/{action}/v1");
//routes.MapRoute("api2", "{controller}/{action}/v2");
In the future, when we make a version 2... what is the best approach to making sure v1 api goes to controller v1 and v2 goes to the version 2 apis?
Thanks.