##// END OF EJS Templates
route: code layout clean up auth_sources route...
Toshi MARUYAMA -
r8288:3e42f2685d93
parent child
Show More
@@ -295,13 +295,20 ActionController::Routing::Routes.draw do |map|
295
295
296 # Used by AuthSourcesControllerTest
296 # Used by AuthSourcesControllerTest
297 # TODO : refactor *AuthSourcesController to remove these routes
297 # TODO : refactor *AuthSourcesController to remove these routes
298 map.connect 'auth_sources', :controller => 'auth_sources', :action => 'index', :conditions => {:method => :get}
298 map.connect 'auth_sources', :controller => 'auth_sources',
299 map.connect 'auth_sources/new', :controller => 'auth_sources', :action => 'new', :conditions => {:method => :get}
299 :action => 'index', :conditions => {:method => :get}
300 map.connect 'auth_sources/create', :controller => 'auth_sources', :action => 'create', :conditions => {:method => :post}
300 map.connect 'auth_sources/new', :controller => 'auth_sources',
301 map.connect 'auth_sources/destroy/:id', :controller => 'auth_sources', :action => 'destroy', :id => /\d+/, :conditions => {:method => :post}
301 :action => 'new', :conditions => {:method => :get}
302 map.connect 'auth_sources/test_connection/:id', :controller => 'auth_sources', :action => 'test_connection', :conditions => {:method => :get}
302 map.connect 'auth_sources/create', :controller => 'auth_sources',
303 map.connect 'auth_sources/edit/:id', :controller => 'auth_sources', :action => 'edit', :id => /\d+/, :conditions => {:method => :get}
303 :action => 'create', :conditions => {:method => :post}
304 map.connect 'auth_sources/update/:id', :controller => 'auth_sources', :action => 'update', :id => /\d+/, :conditions => {:method => :post}
304 map.connect 'auth_sources/destroy/:id', :controller => 'auth_sources',
305 :action => 'destroy', :id => /\d+/, :conditions => {:method => :post}
306 map.connect 'auth_sources/test_connection/:id', :controller => 'auth_sources',
307 :action => 'test_connection', :conditions => {:method => :get}
308 map.connect 'auth_sources/edit/:id', :controller => 'auth_sources',
309 :action => 'edit', :id => /\d+/, :conditions => {:method => :get}
310 map.connect 'auth_sources/update/:id', :controller => 'auth_sources',
311 :action => 'update', :id => /\d+/, :conditions => {:method => :post}
305
312
306 map.connect 'ldap_auth_sources', :controller => 'ldap_auth_sources', :action => 'index', :conditions => {:method => :get}
313 map.connect 'ldap_auth_sources', :controller => 'ldap_auth_sources', :action => 'index', :conditions => {:method => :get}
307 map.connect 'ldap_auth_sources/new', :controller => 'ldap_auth_sources', :action => 'new', :conditions => {:method => :get}
314 map.connect 'ldap_auth_sources/new', :controller => 'ldap_auth_sources', :action => 'new', :conditions => {:method => :get}
General Comments 0
You need to be logged in to leave comments. Login now