diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-06-07 03:39:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-07 03:39:24 +0200 |
commit | 1db4117030ac69b1083ddfe7390dedb02cede421 (patch) | |
tree | a5d97d8f2046ab8455f108770570c3b3a5ba8bac /config/routes.rb | |
parent | a60364ca7d26c82c9353980d0966d37e9aa66014 (diff) |
Change preferences page into appearance, notifications, and other (#10977)
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/config/routes.rb b/config/routes.rb index 34d0081e7..2b35472bd 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -87,13 +87,20 @@ Rails.application.routes.draw do get '/explore', to: 'directories#index', as: :explore get '/explore/:id', to: 'directories#show', as: :explore_hashtag + get '/settings', to: redirect('/settings/preferences') + namespace :settings do resource :profile, only: [:show, :update] resource :preferences, only: [:show, :update] - resource :notifications, only: [:show, :update] - resource :import, only: [:show, :create] + namespace :preferences do + resource :appearance, only: [:show, :update], controller: :appearance + resource :notifications, only: [:show, :update] + end + + resource :import, only: [:show, :create] resource :export, only: [:show, :create] + namespace :exports, constraints: { format: :csv } do resources :follows, only: :index, controller: :following_accounts resources :blocks, only: :index, controller: :blocked_accounts @@ -103,6 +110,7 @@ Rails.application.routes.draw do end resource :two_factor_authentication, only: [:show, :create, :destroy] + namespace :two_factor_authentication do resources :recovery_codes, only: [:create] resource :confirmation, only: [:new, :create] |