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
This commit is contained in:
Jean-Philippe Lang committed 2012-01-15 14:23:06 +00:00
1 parent 6f462d373f
commit fb1a2fd7cd
68 files changed
+393 -227

No files matched your search

+2 -10
View File
@@ -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