config/routes.rb in devise_oauth2_providable-0.3.8 vs config/routes.rb in devise_oauth2_providable-1.0.0.beta1
- old
+ new
@@ -1,7 +1,7 @@
-Rails.application.routes.draw do
- scope '/oauth2', :as => 'oauth2' do
- resources :authorizations, :controller => 'oauth2/authorizations', :only => :create
- match 'authorize' => 'oauth2/authorizations#new'
- resource :token, :controller => 'oauth2/tokens', :only => :create
- end
+Devise::Oauth2Providable::Engine.routes.draw do
+ root :to => "authorizations#new"
+
+ resources :authorizations, :only => :create
+ match 'authorize' => 'authorizations#new'
+ resource :token, :only => :create
end