Sha256: 99a91d7a58dc643075721180443514b6661443fb390f260df2c853871b86008f

Contents?: true

Size: 1.02 KB

Versions: 8

Compression:

Stored size: 1.02 KB

Contents

Foreman::Application.routes.draw do
  namespace :foreman_tasks do
    resources :recurring_logics, :only => [:index, :show] do
      member do
        post :cancel
        put :enable
        put :disable
      end
    end

    resources :tasks, :only => [:index, :show] do
      collection do
        get 'auto_complete_search'
      end
      member do
        get :sub_tasks
        post :abort
        post :cancel
        post :resume
        post :unlock
        post :force_unlock
        post :cancel_step
      end
    end

    namespace :api do
      resources :recurring_logics, :only => [:index, :show, :update] do
        member do
          post :cancel
        end
      end

      resources :tasks, :only => [:show, :index] do
        collection do
          post :bulk_search
          post :bulk_resume
          get :summary
          post :callback
        end
      end
    end

    if ForemanTasks.dynflow.required?
      require 'dynflow/web'
      mount ForemanTasks.dynflow.web_console => '/dynflow'
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
foreman-tasks-0.14.6 config/routes.rb
foreman-tasks-0.15.0 config/routes.rb
foreman-tasks-0.14.5 config/routes.rb
foreman-tasks-0.14.4 config/routes.rb
foreman-tasks-0.14.3 config/routes.rb
foreman-tasks-0.14.2 config/routes.rb
foreman-tasks-0.14.1 config/routes.rb
foreman-tasks-0.14.0 config/routes.rb