Sfoglia il codice sorgente

Fix `/api/v1/streaming` sub-paths not being redirected (#23988)

Claire 1 anno fa
parent
commit
ad77e8a2fb
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3 1
      config/routes.rb

+ 3 - 1
config/routes.rb

@@ -447,7 +447,9 @@ Rails.application.routes.draw do
         resources :list, only: :show
       end
 
-      resources :streaming, only: [:index]
+      get '/streaming', to: 'streaming#index'
+      get '/streaming/(*any)', to: 'streaming#index'
+
       resources :custom_emojis, only: [:index]
       resources :suggestions, only: [:index, :destroy]
       resources :scheduled_statuses, only: [:index, :show, :update, :destroy]