Sha256: fddc769b7444d4226e6d832db4943277ea0a356b3d2fa25298d063d5dc5434ee

Contents?: true

Size: 1.01 KB

Versions: 18

Compression:

Stored size: 1.01 KB

Contents

# frozen_string_literal: true
GoodJob::Engine.routes.draw do
  root to: redirect(path: 'jobs')

  resources :jobs, only: %i[index show destroy] do
    collection do
      get :mass_update, to: redirect(path: 'jobs')
      put :mass_update
    end

    member do
      put :discard
      put :reschedule
      put :retry
    end
  end

  resources :cron_entries, only: %i[index show], param: :cron_key do
    member do
      post :enqueue
      put :enable
      put :disable
    end
  end

  resources :processes, only: %i[index]

  scope :assets, controller: :assets do
    constraints(format: :css) do
      get :bootstrap, action: :bootstrap_css
      get :style, action: :style_css
    end

    constraints(format: :js) do
      get :bootstrap, action: :bootstrap_js
      get :chartjs, action: :chartjs_js
      get :rails_ujs, action: :rails_ujs_js
      get :es_module_shims, action: :es_module_shims_js
      get "modules/:module", action: :modules_js, as: :modules
      get :scripts, action: :scripts_js
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
good_job-3.7.3 config/routes.rb
good_job-3.7.2 config/routes.rb
good_job-3.7.1 config/routes.rb
good_job-3.7.0 config/routes.rb
good_job-3.6.2 config/routes.rb
good_job-3.6.1 config/routes.rb
good_job-3.6.0 config/routes.rb
good_job-3.5.1 config/routes.rb
good_job-3.5.0 config/routes.rb
good_job-3.4.8 config/routes.rb
good_job-3.4.7 config/routes.rb
good_job-3.4.6 config/routes.rb
good_job-3.4.5 config/routes.rb
good_job-3.4.4 config/routes.rb
good_job-3.4.3 config/routes.rb
good_job-3.4.2 config/routes.rb
good_job-3.4.1 config/routes.rb
good_job-3.4.0 config/routes.rb