From 2985d089517a4f83af1cff264d926955f74da2fd Mon Sep 17 00:00:00 2001 From: Daigo 3 Dango Date: Mon, 5 Jun 2017 10:09:29 +0000 Subject: Redirect to streaming_api_base_url (#3579) * Redirect to streaming_api_base_url When Rails receives a request to streaming API, it most likely means that there is another host which is configured to respond to it. This is to redirect clients to that host if `STREAMING_API_BASE_URL` is set as another host. * Use the new Ruby 1.9 hash syntax --- config/routes.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'config') diff --git a/config/routes.rb b/config/routes.rb index 5c1c8e594..7a2286f92 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -141,6 +141,7 @@ Rails.application.routes.draw do resource :public, only: :show, controller: :public resources :tag, only: :show end + resources :streaming, only: [:index] get '/search', to: 'search#index', as: :search -- cgit