We have defined a route to a resource_owner_info controller as follows:
namespace :api, default: { format: :json } do
namespace :v1 do
get '/me', to: 'resource_owner_info#me', as: 'resource_owner_info'
# other /api/v1 routes follow
...
end
end
This generates the named route api_v1_resource_owner_info. I'd prefer to remove the api_v1_ prefix from these routes, but still have the endpoint be /api/v1/... etc. Can that be done in Rails?