foreman/config/routes.rb @ b09b4515
5563217a | Ohad Levy | ActionController::Routing::Routes.draw do |map|
|
|
9eb0e160 | Ohad Levy | map.root :controller => "hosts"
|
|
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,
|
|
b09b4515 | Ohad Levy | :member => {:report => :get, :reports => :get, :facts => :get,
|
|
:environment_selected => :post, :architecture_selected => :post, :os_selected => :post},
|
|||
:collection => { :show_search => :get}
|
|||
f87f1250 | Ohad Levy | map.dashboard '/dashboard', :controller => 'dashboard'
|
|
map.audit '/audit', :controller => 'audit'
|
|||
map.statistics '/statistics', :controller => 'statistics'
|
|||
map.settings '/settings', :controller => 'home', :action => 'settings'
|
|||
767bbf03 | Ohad Levy | map.connect "/reports/expire_reports", :controller => "reports", :action => "expire_reports"
|
|
128c4ed9 | Ohad Levy | map.connect "/reports/expire_good_reports", :controller => "reports", :action => "expire_good_reports"
|
|
767bbf03 | Ohad Levy | map.resources :reports, :active_scaffold => true
|
|
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
|
|
bd46fa41 | Ohad Levy | map.resources :puppetclasses, :member => { :assign => :post }
|
|
af6e2624 | Ohad Levy | map.import_classes '/puppetclass/import', :controller => 'puppetclasses', :action => 'import'
|
|
bd46fa41 | Ohad Levy | map.resources :hostgroups
|
|
fa7070ca | Ohad Levy | map.resources :common_parameters
|
|
af6e2624 | Ohad Levy | map.resources :environments, :active_scaffold => true
|
|
f87f1250 | Ohad Levy | map.resources :subnets, :active_scaffold => true
|
|
map.resources :fact_values, :active_scaffold => true
|
|||
55ed30c7 | Ohad Levy | map.resources :ptables
|
|
2217ce9c | Ohad Levy | map.resources :auth_source_ldaps
|
|
bb7981b5 | Ohad Levy | map.login '/login', :controller => 'users', :action => 'login'
|
|
map.logout '/logout', :controller => 'users', :action => 'logout'
|
|||
72b4a854 | Juan Manuel | map.resources :users
|
|
9eb0e160 | Ohad Levy | #default
|
|
5563217a | Ohad Levy | map.connect ':controller/:action/:id'
|
|
map.connect ':controller/:action/:id.:format'
|
|||
end
|