I have integrated spree with my application. I have overridden spree-user
model to user
model. I am trying to override api/users to come to my UsersController
but instead everytime when I make a call to /api/users/
, the control goes to Spree::Api::UsersController
. I have the following route for user
namespace :api do
resources :users
end
But still my routes are overridden. What changes should I do to route /api/users/
to my local controller?