Skip to content

Commit

Permalink
Finished Routing Helper refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
kobaltz committed Feb 12, 2024
1 parent 52682bf commit fc161e7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
mission_control-servers (0.3.2)
mission_control-servers (0.3.3)
importmap-rails
rails (>= 7.0.0)
stimulus-rails
Expand Down
24 changes: 12 additions & 12 deletions lib/mission_control/servers/routing_helpers.rb
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
module MissionControl
module Servers
module RoutingHelpers
def self.add_public_routes_helper(drawer, engine_mount_path="mission_control-servers")
def self.add_public_routes_helper(drawer, engine_mount_path="/mission_control-servers")
drawer.instance_eval do
get "/#{engine_mount_path}/projects/:project_id/dashboards/project_table", to: "mission_control/servers/dashboards/project_tables#show"
get "/#{engine_mount_path}/projects/:project_id/dashboards/cpu_usage", to: "mission_control/servers/dashboards/cpu_usages#show"
get "/#{engine_mount_path}/projects/:project_id/dashboards/memory_usage", to: "mission_control/servers/dashboards/memory_usages#show"
get "/#{engine_mount_path}/projects/:project_id/dashboards/disk_free", to: "mission_control/servers/dashboards/disk_frees#show"
get "/#{engine_mount_path}/projects/:project_id/dashboards/last_seen", to: "mission_control/servers/dashboards/last_seens#show"
get "/#{engine_mount_path}/projects/:project_id/dashboards/cpu_history", to: "mission_control/servers/dashboards/cpu_histories#show"
get "/#{engine_mount_path}/projects/:project_id/dashboards/memory_history", to: "mission_control/servers/dashboards/memory_histories#show"
get "/#{engine_mount_path}/projects/:project_id/dashboards/combo_history", to: "mission_control/servers/dashboards/combo_histories#show"
get "#{engine_mount_path}/projects/:project_id/dashboards/project_table", to: "mission_control/servers/dashboards/project_tables#show"
get "#{engine_mount_path}/projects/:project_id/dashboards/cpu_usage", to: "mission_control/servers/dashboards/cpu_usages#show"
get "#{engine_mount_path}/projects/:project_id/dashboards/memory_usage", to: "mission_control/servers/dashboards/memory_usages#show"
get "#{engine_mount_path}/projects/:project_id/dashboards/disk_free", to: "mission_control/servers/dashboards/disk_frees#show"
get "#{engine_mount_path}/projects/:project_id/dashboards/last_seen", to: "mission_control/servers/dashboards/last_seens#show"
get "#{engine_mount_path}/projects/:project_id/dashboards/cpu_history", to: "mission_control/servers/dashboards/cpu_histories#show"
get "#{engine_mount_path}/projects/:project_id/dashboards/memory_history", to: "mission_control/servers/dashboards/memory_histories#show"
get "#{engine_mount_path}/projects/:project_id/dashboards/combo_history", to: "mission_control/servers/dashboards/combo_histories#show"
get "#{engine_mount_path}/projects/:project_id/public_projects/new", to: "mission_control/servers/public_projects#new", as: :new_project_public_project
get "/#{engine_mount_path}/projects/:project_id/public_projects/:id", to: "mission_control/servers/public_projects#show"
get "/#{engine_mount_path}/projects/:project_id/script", to: "mission_control/servers/scripts#show"
post "/#{engine_mount_path}/projects/:project_id/ingress", to: "mission_control/servers/ingresses#create"
get "#{engine_mount_path}/projects/:project_id/public_projects/:id", to: "mission_control/servers/public_projects#show"
get "#{engine_mount_path}/projects/:project_id/script", to: "mission_control/servers/scripts#show"
post "#{engine_mount_path}/projects/:project_id/ingress", to: "mission_control/servers/ingresses#create"
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/mission_control/servers/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module MissionControl
module Servers
VERSION = "0.3.2"
VERSION = "0.3.3"
end
end

0 comments on commit fc161e7

Please sign in to comment.