Skip to content

Commit

Permalink
Fix Rails urls for round 20 requirements (TechEmpower#5853)
Browse files Browse the repository at this point in the history
  • Loading branch information
benaadams authored Jul 9, 2020
1 parent 83c76ae commit 26ad1d3
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
28 changes: 14 additions & 14 deletions frameworks/Ruby/rails/benchmark_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"framework": "rails",
"tests": [{
"default": {
"json_url": "/hello_world/json",
"db_url": "/hello_world/db",
"query_url": "/hello_world/query?queries=",
"fortune_url": "/fortune",
"update_url": "/update?queries=",
"json_url": "/json",
"db_url": "/db",
"query_url": "/queries?queries=",
"fortune_url": "/fortunes",
"update_url": "/updates?queries=",
"plaintext_url": "/plaintext",
"port": 8080,
"approach": "Realistic",
Expand All @@ -24,10 +24,10 @@
"versus": "rack-puma-mri"
},
"postgresql": {
"db_url": "/hello_world/db",
"query_url": "/hello_world/query?queries=",
"fortune_url": "/fortune",
"update_url": "/update?queries=",
"db_url": "/db",
"query_url": "/queries?queries=",
"fortune_url": "/fortunes",
"update_url": "/updates?queries=",
"port": 8080,
"approach": "Realistic",
"classification": "Fullstack",
Expand All @@ -44,11 +44,11 @@
"versus": ""
},
"unicorn": {
"json_url": "/hello_world/json",
"db_url": "/hello_world/db",
"query_url": "/hello_world/query?queries=",
"fortune_url": "/fortune",
"update_url": "/update?queries=",
"json_url": "/json",
"db_url": "/db",
"query_url": "/queries?queries=",
"fortune_url": "/fortunes",
"update_url": "/updates?queries=",
"plaintext_url": "/plaintext",
"port": 8080,
"approach": "Realistic",
Expand Down
10 changes: 5 additions & 5 deletions frameworks/Ruby/rails/config/routes.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
Rails.application.routes.draw do
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html

get "hello_world/json"
get "hello_world/db"
get "hello_world/query"
get "fortune", to: "hello_world#fortune"
get "update", to: "hello_world#update"
get "json", to: "hello_world#json"
get "db", to: "hello_world#db"
get "queries", to: "hello_world#query"
get "fortunes", to: "hello_world#fortune"
get "updates", to: "hello_world#update"
get "plaintext", to: "hello_world#plaintext"
end

0 comments on commit 26ad1d3

Please sign in to comment.