Sha256: 6213b5ef5e8853cf99fe21e44eb805af8f571a78414d3b236cca2d8d1d52a426

Contents?: true

Size: 563 Bytes

Versions: 4

Compression:

Stored size: 563 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
        post :stop
        post :resume
        post :force_stop
      end
    end

    namespace :api do
      resources :tasks, :only => [:show] do
        post :bulk_search, :on => :collection
      end
    end

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
foreman-tasks-0.5.7 config/routes.rb
foreman-tasks-0.5.6 config/routes.rb
foreman-tasks-0.5.5 config/routes.rb
foreman-tasks-0.5.4 config/routes.rb