diff options
author | Thibaut Girka <thib@sitedethib.com> | 2018-07-17 22:05:25 +0200 |
---|---|---|
committer | Thibaut Girka <thib@sitedethib.com> | 2018-07-17 22:05:25 +0200 |
commit | 7dbed4dab93d3eaf79b7e7e4a61f52782909d1ae (patch) | |
tree | 7a235fc9422d71f56993b4682b06439310f21f65 /config/routes.rb | |
parent | 1fb78602c56b7bf52dcf383fea7a4c45ce568655 (diff) | |
parent | 6277a6db2a70b798aed71ff7e722d23b975182cd (diff) |
Merge branch 'master' into glitch-soc/merge-upstream
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/config/routes.rb b/config/routes.rb index 95a25536b..3373818b0 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -127,6 +127,8 @@ Rails.application.routes.draw do resource :share, only: [:show, :create] namespace :admin do + get '/dashboard', to: 'dashboard#index' + resources :subscriptions, only: [:index] resources :domain_blocks, only: [:index, :new, :create, :show, :destroy] resources :email_domain_blocks, only: [:index, :new, :create, :destroy] @@ -199,13 +201,7 @@ Rails.application.routes.draw do resources :account_moderation_notes, only: [:create, :destroy] end - authenticate :user, lambda { |u| u.admin? } do - get '/admin', to: redirect('/admin/settings/edit', status: 302) - end - - authenticate :user, lambda { |u| u.moderator? } do - get '/admin', to: redirect('/admin/reports', status: 302) - end + get '/admin', to: redirect('/admin/dashboard', status: 302) namespace :api do # PubSubHubbub outgoing subscriptions |