Sha256: db5b65b018a550d3ccb748973d9fa89c55a0d89c9e132e7c99a61aab7de78f71
Contents?: true
Size: 803 Bytes
Versions: 6
Compression:
Stored size: 803 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) 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
6 entries across 6 versions & 1 rubygems