Change preferences page into appearance, notifications, and other (#10977)
This commit is contained in:
parent
a60364ca7d
commit
1db4117030
100 changed files with 130 additions and 296 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue