Sha256: 729bcbd786f15d6370035fd6def1210d773f22225b1422f9427b6351a00ec30a

Contents?: true

Size: 812 Bytes

Versions: 1

Compression:

Stored size: 812 Bytes

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 :batches, only: %i[index show]

  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
    get "modules/:name", action: :module, as: :module_asset, constraints: { format: 'js' }
    get "static/:name", action: :static, as: :static_asset, constraints: { format: %w[css js] }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
good_job-3.12.6 config/routes.rb