diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-06-07 16:51:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-07 16:51:08 +0200 |
commit | 560ec24e585face30ee99d5bba39a02948fd118f (patch) | |
tree | 7e2739d163f9318b9e8defd27c93fbd31d472766 /config/routes.rb | |
parent | cdb420862eb54f6fbfde3b8485a61e0c052ff9f4 (diff) |
Change /settings/preferences to redirect to appearance, add /settings/preferences/other (#10988)
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/config/routes.rb b/config/routes.rb index 2b35472bd..145079c69 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -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] |