Browse Source

Fix Rails urls for round 20 requirements (#5853)

Ben Adams 5 years ago
parent
commit
26ad1d3b1a
2 changed files with 19 additions and 19 deletions
  1. 14 14
      frameworks/Ruby/rails/benchmark_config.json
  2. 5 5
      frameworks/Ruby/rails/config/routes.rb

+ 14 - 14
frameworks/Ruby/rails/benchmark_config.json

@@ -2,11 +2,11 @@
   "framework": "rails",
   "framework": "rails",
   "tests": [{
   "tests": [{
     "default": {
     "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",
       "plaintext_url": "/plaintext",
       "port": 8080,
       "port": 8080,
       "approach": "Realistic",
       "approach": "Realistic",
@@ -24,10 +24,10 @@
       "versus": "rack-puma-mri"
       "versus": "rack-puma-mri"
     },
     },
     "postgresql": {
     "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,
       "port": 8080,
       "approach": "Realistic",
       "approach": "Realistic",
       "classification": "Fullstack",
       "classification": "Fullstack",
@@ -44,11 +44,11 @@
       "versus": ""
       "versus": ""
     },
     },
     "unicorn": {
     "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",
       "plaintext_url": "/plaintext",
       "port": 8080,
       "port": 8080,
       "approach": "Realistic",
       "approach": "Realistic",

+ 5 - 5
frameworks/Ruby/rails/config/routes.rb

@@ -1,10 +1,10 @@
 Rails.application.routes.draw do
 Rails.application.routes.draw do
   # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
   # 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"
   get "plaintext", to: "hello_world#plaintext"
 end
 end