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
Showing
- app/controllers/api/v1/streaming_controller.rb 15 additions, 0 deletionsapp/controllers/api/v1/streaming_controller.rb
- config/routes.rb 1 addition, 0 deletionsconfig/routes.rb
- spec/controllers/api/v1/streaming_controller_spec.rb 46 additions, 0 deletionsspec/controllers/api/v1/streaming_controller_spec.rb
Please register or sign in to comment