Sha256: bf42206460882bfec6ef3e0157e9d67692f2fd109b5e2e47758c1a0406e06c3c

Contents?: true

Size: 743 Bytes

Versions: 1

Compression:

Stored size: 743 Bytes

Contents

# frozen_string_literal: true
GoodJob::Engine.routes.draw do
  root to: 'executions#index'

  resources :cron_entries, only: %i[index show] do
    member do
      post :enqueue
    end
  end

  resources :jobs, only: %i[index show] do
    member do
      put :discard
      put :reschedule
      put :retry
    end
  end
  resources :executions, only: %i[destroy]

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

    constraints(format: :js) do
      get :bootstrap, action: :bootstrap_js
      get :rails_ujs, action: :rails_ujs_js
      get :chartist, action: :chartist_js
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
good_job-2.6.0 engine/config/routes.rb