2
0

Use with_options for shared settings options in routes (#30847)

This commit is contained in:
Matt Jankowski
2024-11-07 05:07:04 -05:00
committed by GitHub
parent befb44a08c
commit ae667624ac
2 changed files with 8 additions and 4 deletions

View File

@@ -40,8 +40,10 @@ namespace :admin do
end
end
get '/settings', to: redirect('/admin/settings/branding')
get '/settings/edit', to: redirect('/admin/settings/branding')
with_options to: redirect('/admin/settings/branding') do
get '/settings'
get '/settings/edit'
end
namespace :settings do
resource :branding, only: [:show, :update], controller: 'branding'