We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 16fbcad + 1e6210d commit 0920af5Copy full SHA for 0920af5
2 files changed
frameworks/rage/app/controllers/benchmark_controller.rb
@@ -31,10 +31,6 @@ def self.dataset_items = @dataset_items
31
headers["server"] = SERVER_NAME
32
end
33
34
- def pipeline
35
- render plain: 'ok'
36
- end
37
-
38
def baseline_one
39
total = params[:a].to_i + params[:b].to_i
40
if request.post?
frameworks/rage/config/routes.rb
@@ -1,5 +1,9 @@
1
Rage.routes.draw do
2
- get '/pipeline', to: 'benchmark#pipeline'
+ get '/pipeline', to: ->(env) do
3
+ [200, {
4
+ 'content-type' => 'text/plain'
5
+ }, ['ok']]
6
+ end
7
get '/baseline11', to: 'benchmark#baseline_one'
8
post '/baseline11', to: 'benchmark#baseline_one'
9
get '/baseline2', to: 'benchmark#baseline_two'
0 commit comments