Sha256: 0c88fc99022cfd87c998e579d4c30442d12f02af85358dba24c4af2ec1d63e1d

Contents?: true

Size: 681 Bytes

Versions: 7

Compression:

Stored size: 681 Bytes

Contents

ForemanBootdisk::Engine.routes.draw do
  resources :disks, :only => [] do
    get 'generic', :on => :collection
    get 'help', :on => :collection
    constraints(:id => /[^\/]+/) do
      get 'hosts/:id', :on => :collection, :to => 'disks#host'
      get 'full_hosts/:id', :on => :collection, :to => 'disks#full_host'
    end
  end

  namespace :api, :defaults => {:format => 'json'} do
    scope "(:apiv)", :module => :v2, :defaults => {:apiv => 'v2'}, :apiv => /v1|v2/, :constraints => ApiConstraints.new(:version => 2) do
      get 'generic', :to => 'disks#generic'
      constraints(:id => /[^\/]+/) do
        get 'hosts/:id', :to => 'disks#host'
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
foreman_bootdisk-6.0.0 config/routes.rb
foreman_bootdisk-5.0.0 config/routes.rb
foreman_bootdisk-4.0.2 config/routes.rb
foreman_bootdisk-4.0.1 config/routes.rb
foreman_bootdisk-3.2.1 config/routes.rb
foreman_bootdisk-4.0.0 config/routes.rb
foreman_bootdisk-3.2.0 config/routes.rb