Sha256: 6217675ae9d7a42e7ac9078d04bb6ebb208548ace3b80f8fa39550b1add78a1e

Contents?: true

Size: 1.59 KB

Versions: 4

Compression:

Stored size: 1.59 KB

Contents

#@formatter:off
RocketJobMissionControl::Engine.routes.draw do

  resources :jobs, only: [:index, :show, :update, :destroy, :edit] do
    collection do
      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
      patch :delete_line
      patch :update_slice
      get :exceptions
      get :exception
      get :view_slice
      get :edit_slice
    end
  end

  resources :active_workers, only: :index

  resources :servers, only: [:index, :destroy] do
    collection do
      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
      patch :resume
    end
    collection do
      patch :update_all
    end
  end

  resources :dirmon_entries do
    collection do
      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

  get 'rocket_job_mission_control/test' => 'test#index' if Rails.env.test?

  root to: "jobs#running"
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rocketjob_mission_control-4.3.0 config/routes.rb
rocketjob_mission_control-4.2.1 config/routes.rb
rocketjob_mission_control-4.2.0 config/routes.rb
rocketjob_mission_control-4.1.0 config/routes.rb