Sha256: abde8f126fc86415018c293ed75d75ef16278ba7afdc4e6eda16b5cb6792af45

Contents?: true

Size: 573 Bytes

Versions: 2

Compression:

Stored size: 573 Bytes

Contents

ForemanBootdisk::Engine.routes.draw do
  resources :disks, :only => [] do
    get 'generic', :on => :collection
    constraints(:id => /[^\/]+/) do
      get 'hosts/:id', :on => :collection, :to => 'disks#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

2 entries across 2 versions & 1 rubygems

Version Path
foreman_bootdisk-3.1.1 config/routes.rb
foreman_bootdisk-3.1.0 config/routes.rb