Browse Source

route: code layout clean up sys route

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8397 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/1.4.0
Toshi MARUYAMA 12 years ago
parent
commit
46ba995341
1 changed files with 9 additions and 3 deletions
  1. 9
    3
      config/routes.rb

+ 9
- 3
config/routes.rb View File

@@ -302,9 +302,15 @@ ActionController::Routing::Routes.draw do |map|
map.connect 'settings/plugin/:id', :controller => 'settings', :action => 'plugin', :conditions => {:method => [:get, :post]}

map.with_options :controller => 'sys' do |sys|
sys.connect 'sys/projects.:format', :action => 'projects', :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}
sys.connect 'sys/projects.:format',
:action => 'projects',
: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

map.connect 'robots.txt', :controller => 'welcome', :action => 'robots', :conditions => {:method => :get}

Loading…
Cancel
Save