mirror of
https://github.com/mastodon/mastodon.git
synced 2024-08-20 21:08:15 -07:00
Use with_options
for shared settings option in admin
routes
This commit is contained in:
parent
2ed13071ef
commit
5e546275cc
1 changed files with 4 additions and 2 deletions
|
@ -40,8 +40,10 @@ namespace :admin do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
get '/settings', to: redirect('/admin/settings/branding')
|
with_options to: redirect('/admin/settings/branding') do
|
||||||
get '/settings/edit', to: redirect('/admin/settings/branding')
|
get '/settings'
|
||||||
|
get '/settings/edit'
|
||||||
|
end
|
||||||
|
|
||||||
namespace :settings do
|
namespace :settings do
|
||||||
resource :branding, only: [:show, :update], controller: 'branding'
|
resource :branding, only: [:show, :update], controller: 'branding'
|
||||||
|
|
Loading…
Reference in a new issue