Sha256: 299464dd089322ed54f64e73ebd15f4f93816237bb887f9d1e7d53458a29030d

Contents?: true

Size: 1.34 KB

Versions: 2

Compression:

Stored size: 1.34 KB

Contents

ForemanPatch::Engine.routes.draw do
  resources :groups, only: [:index, :new, :create, :edit, :update, :destroy] do
    collection do
      get 'auto_complete_search'
    end
  end

  resources :cycles, only: [:index, :show, :destroy] do
    collection do
      get 'auto_complete_search'
    end

    resources :windows, only: [:new, :create]
  end

  resources :windows, only: [:show, :destroy]

  resources :rounds, only: [:show] do
    collection do
      get 'auto_complete_search'
    end
  end

  resources :invocations, only: [:show, :destroy] do
    collection do
      get 'auto_complete_search'
    end
  end

  resources :plans, only: [:index, :new, :create, :show, :edit, :update, :destroy] do
    resources :window_plans, only: [:new, :create]
    member do
      post :iterate
    end
  end

  resources :window_plans, only: [:edit, :update, :destroy]

  resources :ticket_fields, except: [:show] do
    resources :lookup_values, only: [:index, :create, :update, :destroy]
    collection do
      get 'auto_complete_search'
    end
  end

  constraints(id: %r{[^/]+}) do
    resources :hosts, only: [], controller: '/hosts' do
      collection do
        post 'select_multiple_patch_group'
        post 'update_multiple_patch_group'
      end
    end
  end
end

Foreman::Application.routes.draw do
  mount ForemanPatch::Engine, at: '/foreman_patch'
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
foreman_patch-1.1.6.alpha5 config/routes.rb
foreman_patch-1.1.6.alpha4 config/routes.rb