diff options
author | Etienne Massip <etienne.massip@gmail.com> | 2011-10-24 20:19:26 +0000 |
---|---|---|
committer | Etienne Massip <etienne.massip@gmail.com> | 2011-10-24 20:19:26 +0000 |
commit | 8f96f0c40d8032e4787f2548e0f0fd7da7e36a07 (patch) | |
tree | cb7a9ac1efdede90bd38638e4119d57e309ee7a2 /config | |
parent | 657fcd97aa1a6fc289dcb998dd994c9499112737 (diff) | |
download | redmine-8f96f0c40d8032e4787f2548e0f0fd7da7e36a07.tar.gz redmine-8f96f0c40d8032e4787f2548e0f0fd7da7e36a07.zip |
Refactor : convert queries to REST resources (also fixes #9108).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7649 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/routes.rb b/config/routes.rb index c07004e69..8f0f39e48 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -77,7 +77,7 @@ ActionController::Routing::Routes.draw do |map| end map.resources :issue_moves, :only => [:new, :create], :path_prefix => '/issues', :as => 'move' - map.resources :queries, :only => [:index] + map.resources :queries, :except => [:show] # Misc issue routes. TODO: move into resources map.auto_complete_issues '/issues/auto_complete', :controller => 'auto_completes', :action => 'issues' @@ -156,6 +156,7 @@ ActionController::Routing::Routes.draw do |map| project.resources :versions, :shallow => true, :collection => {:close_completed => :put}, :member => {:status_by => :post} project.resources :news, :shallow => true project.resources :time_entries, :controller => 'timelog', :path_prefix => 'projects/:project_id' + project.resources :queries, :except => [:show] project.wiki_start_page 'wiki', :controller => 'wiki', :action => 'show', :conditions => {:method => :get} project.wiki_index 'wiki/index', :controller => 'wiki', :action => 'index', :conditions => {:method => :get} @@ -226,7 +227,6 @@ ActionController::Routing::Routes.draw do |map| map.resources :groups #left old routes at the bottom for backwards compat - map.connect 'projects/:project_id/queries/:action', :controller => 'queries' map.connect 'projects/:project_id/issues/:action', :controller => 'issues' map.connect 'projects/:project_id/documents/:action', :controller => 'documents' map.connect 'projects/:project_id/boards/:action/:id', :controller => 'boards' |