diff --git a/frameworks/rage/app/controllers/benchmark_controller.rb b/frameworks/rage/app/controllers/benchmark_controller.rb index f4bab9b90..671b48e74 100644 --- a/frameworks/rage/app/controllers/benchmark_controller.rb +++ b/frameworks/rage/app/controllers/benchmark_controller.rb @@ -31,10 +31,6 @@ def self.dataset_items = @dataset_items headers["server"] = SERVER_NAME end - def pipeline - render plain: 'ok' - end - def baseline_one total = params[:a].to_i + params[:b].to_i if request.post? diff --git a/frameworks/rage/config/routes.rb b/frameworks/rage/config/routes.rb index fe0cf6340..f59008714 100644 --- a/frameworks/rage/config/routes.rb +++ b/frameworks/rage/config/routes.rb @@ -1,5 +1,9 @@ Rage.routes.draw do - get '/pipeline', to: 'benchmark#pipeline' + get '/pipeline', to: ->(env) do + [200, { + 'content-type' => 'text/plain' + }, ['ok']] + end get '/baseline11', to: 'benchmark#baseline_one' post '/baseline11', to: 'benchmark#baseline_one' get '/baseline2', to: 'benchmark#baseline_two'