foreman/config/routes.rb @ edf4198b
5563217a | Ohad Levy | ActionController::Routing::Routes.draw do |map|
|
|
9eb0e160 | Ohad Levy | map.root :controller => "hosts"
|
|
459e0feb | Paul Kelly | map.resources :reports
|
|
bc2625b5 | Ohad Levy | map.connect "node/:name", :controller => 'hosts', :action => 'externalNodes',
|
|
8b96913a | Frank Sweetser | :requirements => { :name => /[^\.][\w\.-]+/ }
|
|
0e12dbfc | Ohad Levy | map.connect "/hosts/query", :controller => 'hosts', :action => 'query'
|
|
456d537a | Martin Englund | map.resources :hosts,
|
|
b729fb04 | Paul Kelly | :member => { :report => :get, :reports => :get, :clone => :get,
|
|
5af52b3b | Ohad Levy | :environment_selected => :post, :architecture_selected => :post, :os_selected => :post,
|
|
2295ea88 | Ohad Levy | :storeconfig_klasses => :get, :externalNodes => :get, :setBuild => :get, :puppetrun => :get},
|
|
52538203 | Ohad Levy | :collection => { :show_search => :get, :multiple_actions => :get, :multiple_parameters => :get,
|
|
:update_multiple_parameters => :post, :save_checkbox => :post, :select_multiple_hostgroup => :get,
|
|||
6b728fdc | Ashay Humane | :update_multiple_hostgroup => :post, :select_multiple_environment => :get, :update_multiple_environment => :post,
|
|
:reset_multiple => :get}
|
|||
f87f1250 | Ohad Levy | map.dashboard '/dashboard', :controller => 'dashboard'
|
|
map.statistics '/statistics', :controller => 'statistics'
|
|||
map.settings '/settings', :controller => 'home', :action => 'settings'
|
|||
661e86c7 | Ohad Levy | map.resources :audits
|
|
map.resources :usergroups
|
|||
0265427b | Ohad Levy | map.resources :lookup_keys
|
|
map.connect "/lookup", :controller => "lookup_keys", :action => "q"
|
|||
c2ba4ed3 | Ohad Levy | map.resources :domains
|
|
66bb73ba | Ohad Levy | map.resources :operatingsystems
|
|
76b2f1b7 | Ohad Levy | map.resources :medias
|
|
97e387ca | Ashay Humane | map.resources :models
|
|
e6d73c7f | Ohad Levy | map.resources :architectures
|
|
5f6b2196 | Paul Kelly | map.resources :puppetclasses, :member => { :assign => :post }, :collection => {:import_environments => :get}
|
|
bd46fa41 | Ohad Levy | map.resources :hostgroups
|
|
fa7070ca | Ohad Levy | map.resources :common_parameters
|
|
5f6b2196 | Paul Kelly | map.resources :environments, :collection => {:import_environments => :get}
|
|
b729fb04 | Paul Kelly | map.resources :fact_values
|
|
55ed30c7 | Ohad Levy | map.resources :ptables
|
|
2217ce9c | Ohad Levy | map.resources :auth_source_ldaps
|
|
6874bbd9 | Paul Kelly | map.resources :users, :collection => {:login => [:get, :post], :logout => :get}
|
|
9eb0e160 | Ohad Levy | #default
|
|
5563217a | Ohad Levy | map.connect ':controller/:action/:id'
|
|
map.connect ':controller/:action/:id.:format'
|
|||
end
|