Sha256: 954d01d3e207e13291cca6b278854230dad61b67ac37aebf13209a6637c682d8

Contents?: true

Size: 683 Bytes

Versions: 3

Compression:

Stored size: 683 Bytes

Contents

Foreman::Application.routes.draw do
  namespace :foreman_tasks do
    resources :tasks, :only => [:index, :show] do
      collection do
        get 'auto_complete_search'
      end
      member do
        get :sub_tasks
        post :resume
        post :unlock
        post :force_unlock
        post :cancel_step
      end
    end

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

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
foreman-tasks-0.7.2 config/routes.rb
foreman-tasks-0.7.1 config/routes.rb
foreman-tasks-0.7.0 config/routes.rb