Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem in generated routes #607

Closed
valentindruon opened this issue Apr 13, 2016 · 1 comment
Closed

Problem in generated routes #607

valentindruon opened this issue Apr 13, 2016 · 1 comment

Comments

@valentindruon
Copy link

Hi there !

I think there is a problem in my generated routes. When I run rake routes, I get :
destroy_api_user_session GET /api/auth/sign_out(.:format) api/sessions#destroy

Shouldn't destroy_api_user_session be a DELETE route ?

I defined routes like this :

namespace :api do
    mount_devise_token_auth_for 'User', at: 'auth', controllers: {
        sessions: 'api/sessions'
    }
end
@valentindruon
Copy link
Author

It was my bad, another developer set :
config.sign_out_via: :get
in initializers/devise.rb (cause we are using devise too)

Issue closed !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant