app/controllers/streaming_controller.rb in test_server-0.2.2 vs app/controllers/streaming_controller.rb in test_server-0.2.3

- old
+ new

@@ -19,15 +19,15 @@ configure do mime_type :stream, 'text/plain' end - get '/' do + get :index, map: '/' do redirect to('/default/') end - get '/default/?:count?' do + get :string, map: '/default' do param :count, Integer, default: 10 count = params[:count] stream_data do |out| @@ -38,10 +38,10 @@ sleep 1 end end end - get '/eicar/' do + get :eicar, map: '/eicar' do stream_data do |out| generate_eicar.each do |c| out << encode { c } end end