Sha256: 84971dca42051647ac89748a4e63f213bd6cb183ed7dee31d6878df27d5ba737

Contents?: true

Size: 912 Bytes

Versions: 2

Compression:

Stored size: 912 Bytes

Contents

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

  resources :executions, only: %i[destroy]

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

  resources :cron_entries, only: %i[index show] do
    member do
      post :enqueue
    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

2 entries across 2 versions & 1 rubygems

Version Path
good_job-2.13.2 engine/config/routes.rb
good_job-2.13.1 engine/config/routes.rb