diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-02-10 22:03:25 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-02-10 22:03:25 +0000 |
commit | 8cf3d7a4929ece2fd448d64e24e1e93cf2fbd58c (patch) | |
tree | 14fc2a67033728f4bddc2a673e581e0cbbcd5544 /config | |
parent | cf5658d7fe04a648f50547162d4594d60d8a47c3 (diff) | |
download | redmine-8cf3d7a4929ece2fd448d64e24e1e93cf2fbd58c.tar.gz redmine-8cf3d7a4929ece2fd448d64e24e1e93cf2fbd58c.zip |
Replaces the repositories management SOAP API with a simple REST API.
reposman usage is unchanged but the script now requires activeresource.
actionwebservice is now longer used and thus removed from plugins.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2435 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/config/routes.rb b/config/routes.rb index d8969e309..475d447be 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -246,10 +246,11 @@ ActionController::Routing::Routes.draw do |map| omap.repositories_entry 'repositories/annotate/:id/*path', :action => 'annotate' omap.connect 'repositories/revision/:id/:rev', :action => 'revision' end - - # Allow downloading Web Service WSDL as a file with an extension - # instead of a file named 'wsdl' - map.connect ':controller/service.wsdl', :action => 'wsdl' + + 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} + end # Install the default route as the lowest priority. map.connect ':controller/:action/:id' |