config/routes.rb in rocketjob_mission_control-3.0.0.rc1 vs config/routes.rb in rocketjob_mission_control-3.0.0
- old
+ new
@@ -1,38 +1,39 @@
RocketJobMissionControl::Engine.routes.draw do
resources :jobs, only: [:index, :show, :update, :destroy, :edit] do
collection do
- get :running, to: 'jobs/index_filters#running'
- get :scheduled, to: 'jobs/index_filters#scheduled'
- get :completed, to: 'jobs/index_filters#completed'
- get :queued, to: 'jobs/index_filters#queued'
- get :paused, to: 'jobs/index_filters#paused'
- get :failed, to: 'jobs/index_filters#failed'
- get :aborted, to: 'jobs/index_filters#aborted'
+ get :running, to: 'jobs#running'
+ get :scheduled, to: 'jobs#scheduled'
+ get :completed, to: 'jobs#completed'
+ get :queued, to: 'jobs#queued'
+ get :paused, to: 'jobs#paused'
+ get :failed, to: 'jobs#failed'
+ get :aborted, to: 'jobs#aborted'
end
member do
patch :abort
patch :fail
patch :pause
patch :resume
patch :retry
patch :run_now
get :exceptions
+ get :exception
end
- resources :failures, controller: 'jobs/failures', only: :index
end
resources :active_workers, only: :index
resources :servers, only: [:index, :destroy] do
collection do
- get :starting, to: 'servers/index_filters#starting'
- get :running, to: 'servers/index_filters#running'
- get :paused, to: 'servers/index_filters#paused'
- get :stopping, to: 'servers/index_filters#stopping'
+ get :starting, to: 'servers#starting'
+ get :running, to: 'servers#running'
+ get :paused, to: 'servers#paused'
+ get :stopping, to: 'servers#stopping'
+ get :zombie, to: 'servers#zombie'
end
member do
patch :stop
patch :pause
@@ -43,19 +44,21 @@
end
end
resources :dirmon_entries do
collection do
- get :pending, to: 'dirmon_entries/index_filters#pending'
- get :enabled, to: 'dirmon_entries/index_filters#enabled'
- get :failed, to: 'dirmon_entries/index_filters#failed'
- get :disabled, to: 'dirmon_entries/index_filters#disabled'
+ get :pending, to: 'dirmon_entries#pending'
+ get :enabled, to: 'dirmon_entries#enabled'
+ get :failed, to: 'dirmon_entries#failed'
+ get :disabled, to: 'dirmon_entries#disabled'
end
member do
put :enable
put :disable
end
end
- root to: "jobs/index_filters#running"
+ get 'rocket_job_mission_control/test' => 'test#index' if Rails.env.test?
+
+ root to: "jobs#running"
end