diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-01-15 14:23:06 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-01-15 14:23:06 +0000 |
commit | fb1a2fd7cd4ca7335d660265a32604f6e2006dd6 (patch) | |
tree | 444bf09c5a63e91cc314de7c7e9fd78f93d1ff09 /config/routes.rb | |
parent | 6f462d373f1b57657082f22f882942d41df47a39 (diff) | |
download | redmine-fb1a2fd7cd4ca7335d660265a32604f6e2006dd6.tar.gz redmine-fb1a2fd7cd4ca7335d660265a32604f6e2006dd6.zip |
Resourcified repositories for CRUD operations to prepare for multiple SCM per project (#779).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8648 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/config/routes.rb b/config/routes.rb index 42e936c0f..64ba34d2f 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -176,6 +176,8 @@ ActionController::Routing::Routes.draw do |map| project.resources :issue_categories, :shallow => true project.resources :documents, :shallow => true, :member => {:add_attachment => :post} project.resources :boards + project.resources :repositories, :shallow => true, :except => [:index, :show], + :member => {:committers => [:get, :post]} project.wiki_start_page 'wiki', :controller => 'wiki', :action => 'show', :conditions => {:method => :get} project.wiki_index 'wiki/index', :controller => 'wiki', :action => 'index', :conditions => {:method => :get} @@ -272,16 +274,6 @@ ActionController::Routing::Routes.draw do |map| repositories.connect 'projects/:id/repository/revision', :action => 'revision', :conditions => {:method => [:get, :post]} - - repositories.connect 'projects/:id/repository/committers', - :action => 'committers', - :conditions => {:method => [:get, :post]} - repositories.connect 'projects/:id/repository/edit', - :action => 'edit', - :conditions => {:method => [:get, :post]} - repositories.connect 'projects/:id/repository/destroy', - :action => 'destroy', - :conditions => {:method => :post} end # additional routes for having the file name at the end of url |