mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-22 06:06:45 +00:00
Use with_options
for shared settings options in routes (#30847)
This commit is contained in:
parent
befb44a08c
commit
ae667624ac
|
@ -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'
|
||||||
|
|
|
@ -44,8 +44,10 @@ namespace :api, format: false do
|
||||||
resources :list, only: :show
|
resources :list, only: :show
|
||||||
end
|
end
|
||||||
|
|
||||||
get '/streaming', to: 'streaming#index'
|
with_options to: 'streaming#index' do
|
||||||
get '/streaming/(*any)', to: 'streaming#index'
|
get '/streaming'
|
||||||
|
get '/streaming/(*any)'
|
||||||
|
end
|
||||||
|
|
||||||
resources :custom_emojis, only: [:index]
|
resources :custom_emojis, only: [:index]
|
||||||
resources :suggestions, only: [:index, :destroy]
|
resources :suggestions, only: [:index, :destroy]
|
||||||
|
|
Loading…
Reference in a new issue