Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions frameworks/rage/app/controllers/benchmark_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down
6 changes: 5 additions & 1 deletion frameworks/rage/config/routes.rb
Original file line number Diff line number Diff line change
@@ -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'
Expand Down