Sha256: 47c59a57e4bde0386c51c22593cf32b12996fd5ac978a9c547234bcc914c9672
Contents?: true
Size: 1.07 KB
Versions: 3
Compression:
Stored size: 1.07 KB
Contents
# frozen_string_literal: true Rails.application.routes.draw do namespace :api, :defaults => { :format => 'json' } do scope '(:apiv)', :module => :v2, :defaults => { :apiv => 'v2' }, :apiv => /v1|v2/, :constraints => ApiConstraints.new(:version => 2, :default => true) do constraints(:host_id => /[^\/]+/) do resources :hosts, :only => [] do constraints(:id => /[^\/]+/) do resources :snapshots, except: [:new, :edit] do member do put :revert end end end end end end end constraints(host_id: %r{[^/]+}) do resources :hosts, only: [] do resources :snapshots, module: 'foreman_snapshot_management', only: [:index, :create, :destroy, :update] do member do put :revert end end end end resources :snapshots, module: 'foreman_snapshot_management', only: [] do collection do post :select_multiple_host post :create_multiple_host end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
foreman_snapshot_management-4.0.0 | config/routes.rb |
foreman_snapshot_management-3.0.1 | config/routes.rb |
foreman_snapshot_management-3.0.0 | config/routes.rb |