about summary refs log tree commit diff
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2023-03-06 17:44:55 +0100
committerGitHub <noreply@github.com>2023-03-06 17:44:55 +0100
commit59b24c3688628a3cb778e71fc0684636cbda557b (patch)
treefd6dea2fa807cc96c583e5722f74f73c51266a15
parentdfa1be4ab451a4dd099ad3c140502fb0759ef832 (diff)
Fix `/api/v1/streaming` sub-paths not being redirected (#23988)
-rw-r--r--config/routes.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb
index e7c4c000e..530b46a5a 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -472,7 +472,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]