mirror of
https://github.com/redmine/redmine.git
synced 2024-09-13 15:45:44 +02:00
route: code layout clean up sys route
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8397 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
e3742a9ed5
commit
46ba995341
@ -302,9 +302,15 @@ ActionController::Routing::Routes.draw do |map|
|
|||||||
map.connect 'settings/plugin/:id', :controller => 'settings', :action => 'plugin', :conditions => {:method => [:get, :post]}
|
map.connect 'settings/plugin/:id', :controller => 'settings', :action => 'plugin', :conditions => {:method => [:get, :post]}
|
||||||
|
|
||||||
map.with_options :controller => 'sys' do |sys|
|
map.with_options :controller => 'sys' do |sys|
|
||||||
sys.connect 'sys/projects.:format', :action => 'projects', :conditions => {:method => :get}
|
sys.connect 'sys/projects.:format',
|
||||||
sys.connect 'sys/projects/:id/repository.:format', :action => 'create_project_repository', :conditions => {:method => :post}
|
:action => 'projects',
|
||||||
sys.connect 'sys/fetch_changesets', :action => 'fetch_changesets', :conditions => {:method => :get}
|
:conditions => {:method => :get}
|
||||||
|
sys.connect 'sys/projects/:id/repository.:format',
|
||||||
|
:action => 'create_project_repository',
|
||||||
|
:conditions => {:method => :post}
|
||||||
|
sys.connect 'sys/fetch_changesets',
|
||||||
|
:action => 'fetch_changesets',
|
||||||
|
:conditions => {:method => :get}
|
||||||
end
|
end
|
||||||
|
|
||||||
map.connect 'robots.txt', :controller => 'welcome', :action => 'robots', :conditions => {:method => :get}
|
map.connect 'robots.txt', :controller => 'welcome', :action => 'robots', :conditions => {:method => :get}
|
||||||
|
Loading…
Reference in New Issue
Block a user