diff --git a/config/routes.rb b/config/routes.rb index bcf2ad8..2aa282a 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,16 +1,16 @@ Rails.application.routes.draw do - get '/', to: redirect('/domains') + root to: redirect('/domains') resources :domains do resources :records, except: [:index, :show] do # Reuse records#update instead of introducing new controller actions # # rubocop:disable Style/AlignHash put :disable, to: 'records#update', on: :member, defaults: { record: { disabled: true } } put :enable, to: 'records#update', on: :member, defaults: { record: { disabled: false } } # rubocop:enable Style/AlignHash end end end