config/routes.rb in infinum_id-1.3.1 vs config/routes.rb in infinum_id-1.4.0

- old
+ new

@@ -1,14 +1,16 @@ Rails.application.routes.draw do - devise_for :users, controllers: { - omniauth_callbacks: 'infinum_id/users/omniauth_callbacks' + get '/logout', to: 'infinum_id/resources#destroy' + + devise_for InfinumId.resource_name.pluralize.underscore, controllers: { + omniauth_callbacks: 'infinum_id/resources/omniauth_callbacks' } - get '/logout', to: 'infinum_id/users#destroy' - - namespace :api do - scope '/webhooks', :controller => :webhooks do - post :update_user_callback - post :create_user_callback + namespace :infinum_id do + namespace :api do + scope '/webhooks', :controller => :webhooks do + post :update_resource_callback + post :create_resource_callback + end end end end