0
0
Fork 0

Change /settings/preferences to redirect to appearance, add /settings/preferences/other (#10988)

This commit is contained in:
Eugen Rochko 2019-06-07 16:51:08 +02:00 committed by GitHub
parent cdb420862e
commit 560ec24e58
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 18 additions and 7 deletions

View file

@ -87,15 +87,17 @@ 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')
get '/settings', to: redirect('/settings/profile')
namespace :settings do
resource :profile, only: [:show, :update]
resource :preferences, only: [:show, :update]
get :preferences, to: redirect('/settings/preferences/appearance')
namespace :preferences do
resource :appearance, only: [:show, :update], controller: :appearance
resource :notifications, only: [:show, :update]
resource :other, only: [:show, :update], controller: :other
end
resource :import, only: [:show, :create]