diff --git a/frameworks/rails/app/controllers/benchmark_controller.rb b/frameworks/rails/app/controllers/benchmark_controller.rb index 4ea7c27c8..f19693442 100644 --- a/frameworks/rails/app/controllers/benchmark_controller.rb +++ b/frameworks/rails/app/controllers/benchmark_controller.rb @@ -18,10 +18,6 @@ class BenchmarkController < ActionController::API PG_QUERY = 'SELECT id, name, category, price, quantity, active, tags, rating_score, rating_count FROM items WHERE price BETWEEN $1 AND $2 LIMIT $3'.freeze - def pipeline - render plain: 'ok' - end - def baseline11 total = params[:a].to_i + params[:b].to_i if request.post? diff --git a/frameworks/rails/config/routes.rb b/frameworks/rails/config/routes.rb index 615da3b69..9b5199ed3 100644 --- a/frameworks/rails/config/routes.rb +++ b/frameworks/rails/config/routes.rb @@ -1,5 +1,9 @@ Rails.application.routes.draw do - get '/pipeline', to: 'benchmark#pipeline' + get '/pipeline', to: ->(env) do + [200, { + 'content-type' => 'text/plain' + }, ['ok']] + end get '/baseline11', to: 'benchmark#baseline11' post '/baseline11', to: 'benchmark#baseline11' get '/baseline2', to: 'benchmark#baseline2'