I have this route
namespace :api, defaults: {format: 'json'} do
namespace :v1 do
post .....
get .....
end
end
So instead of typing localhost:3000/api/v1/func is there a way to make the v1 defaulted (by routes) which then all I have to type is localhost:3000/api/func?
This way if I come out with api v2, all I have to do is change the route in one place.
Thanks!