diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2022-10-22 11:44:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-22 11:44:41 +0200 |
commit | 7c152acb2cc545a87610de349a94e14f45fbed5d (patch) | |
tree | 1f698c5ffb954b000cb0779de5a2bf25884779c0 /config/routes.rb | |
parent | abf6c87ee8b57e09dca5f5b1fe1839a314e1aa46 (diff) |
Change settings area to be separated into categories in admin UI (#19407)
And update all descriptions
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb index 1ed585f19..b44479e77 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -241,7 +241,18 @@ Rails.application.routes.draw do end end - resource :settings, only: [:edit, :update] + get '/settings', to: redirect('/admin/settings/branding') + get '/settings/edit', to: redirect('/admin/settings/branding') + + namespace :settings do + resource :branding, only: [:show, :update], controller: 'branding' + resource :registrations, only: [:show, :update], controller: 'registrations' + resource :content_retention, only: [:show, :update], controller: 'content_retention' + resource :about, only: [:show, :update], controller: 'about' + resource :appearance, only: [:show, :update], controller: 'appearance' + resource :discovery, only: [:show, :update], controller: 'discovery' + end + resources :site_uploads, only: [:destroy] resources :invites, only: [:index, :create, :destroy] do |