Sha256: faa23b6a217ba2253eb75a5e35449ed28fd8dc76d4d6f13ebe134b835dbc53a4
Contents?: true
Size: 1.02 KB
Versions: 3
Compression:
Stored size: 1.02 KB
Contents
Rails.application.routes.draw do scope :salt, :path => '/salt' do match "/node/:name" => 'hosts#salt_external_node', :constraints => { :name => /[^\.][\w\.-]+/ } resources :salt_environments, :controller => 'foreman_salt/salt_environments' do collection do get 'auto_complete_search' end end resources :salt_modules, :controller => 'foreman_salt/salt_modules' do collection do get 'auto_complete_search' end end end constraints(:smart_proxy_id => /[^\/]+/) do resources :smart_proxies, :except => [:show] do constraints(:id => /[^\/]+/) do resources :salt_autosign, :only => [:index, :destroy, :create, :new], :controller => 'foreman_salt/salt_autosign' resources :salt_keys, :only => [:index, :destroy], :controller => 'foreman_salt/salt_keys' do get :accept get :reject end end end end constraints(:id => /[^\/]+/) do resources :hosts do member do get :saltrun end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
foreman_salt-1.0.0 | config/routes.rb |
foreman_salt-0.0.4 | config/routes.rb |
foreman_salt-0.0.3 | config/routes.rb |