Sha256: 8dab85db5b7da5c05d7c7cde2ba86fa37c91904ddcd2c611de6dc408bd9fd7e6
Contents?: true
Size: 789 Bytes
Versions: 7
Compression:
Stored size: 789 Bytes
Contents
# frozen_string_literal: true ForemanBootdisk::Engine.routes.draw do resources :disks, only: [] do get 'generic', on: :collection get 'help', on: :collection constraints(id: %r{[^/]+}) 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: %r{[^/]+}) do get 'hosts/:id', to: 'disks#host' get 'subnets/:id', to: 'subnet_disks#subnet' end end end end
Version data entries
7 entries across 7 versions & 1 rubygems