Sha256: 1e3add8bd3d6aaf520a8858b54c25e0efe802b5bd81cb3f62586ea8fdb5074e8

Contents?: true

Size: 821 Bytes

Versions: 9

Compression:

Stored size: 821 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'
      get 'subnet/:id', :on => :collection, :to => 'disks#subnet'
    end
  end

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
foreman_bootdisk-12.0.1 config/routes.rb
foreman_bootdisk-13.0.0 config/routes.rb
foreman_bootdisk-12.0.0 config/routes.rb
foreman_bootdisk-11.0.0 config/routes.rb
foreman_bootdisk-10.0.2 config/routes.rb
foreman_bootdisk-10.0.1 config/routes.rb
foreman_bootdisk-10.0.0 config/routes.rb
foreman_bootdisk-9.0.0 config/routes.rb
foreman_bootdisk-8.1.0 config/routes.rb