1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00

Compare commits

...

3 commits

Author SHA1 Message Date
Matt Jankowski
29b4a27570
Merge 982f507739 into 549ab089ee 2024-07-31 11:06:50 +00:00
Matt Jankowski
982f507739 Add api streaming case 2024-07-17 10:30:43 -04:00
Matt Jankowski
b95393b6be Use with_options for shared settings option in admin routes 2024-07-17 10:30:43 -04:00
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'

View file

@ -44,8 +44,10 @@ namespace :api, format: false do
resources :list, only: :show
end
get '/streaming', to: 'streaming#index'
get '/streaming/(*any)', to: 'streaming#index'
with_options to: 'streaming#index' do
get '/streaming'
get '/streaming/(*any)'
end
resources :custom_emojis, only: [:index]
resources :suggestions, only: [:index, :destroy]