aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server/src/main/webapp/WEB-INF/config
diff options
context:
space:
mode:
authorFabrice Bellingard <bellingard@gmail.com>2011-05-31 10:01:22 +0200
committerFabrice Bellingard <bellingard@gmail.com>2011-05-31 10:04:42 +0200
commitc9c92152de83283b07dc4c5a876730af98b1ac56 (patch)
tree9c5078a392cac4e95df56ff48f2720610ea0ec7d /sonar-server/src/main/webapp/WEB-INF/config
parent49d5f33b357d2a49cee0f2a511cd354a21ec6398 (diff)
downloadsonarqube-c9c92152de83283b07dc4c5a876730af98b1ac56.tar.gz
sonarqube-c9c92152de83283b07dc4c5a876730af98b1ac56.zip
SONAR-2405 Configured routes.rb to have more RESTful URLs
And also updated the documentation.
Diffstat (limited to 'sonar-server/src/main/webapp/WEB-INF/config')
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/config/routes.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/config/routes.rb b/sonar-server/src/main/webapp/WEB-INF/config/routes.rb
index f485d1cdef5..6f4aafef2a0 100644
--- a/sonar-server/src/main/webapp/WEB-INF/config/routes.rb
+++ b/sonar-server/src/main/webapp/WEB-INF/config/routes.rb
@@ -11,6 +11,7 @@ ActionController::Routing::Routes.draw do |map|
api.resources :events, :only => [:index, :show, :create, :destroy]
api.resources :user_properties, :only => [:index, :show, :create, :destroy], :requirements => { :id => /.*/ }
api.resources :favorites, :only => [:index, :show, :create, :destroy], :requirements => { :id => /.*/ }
+ api.resources :reviews, :only => [:index, :create, :update, :destroy], :requirements => { :id => /.*/ }
end
map.connect 'api/metrics', :controller => 'api/metrics', :action => 'index', :conditions => { :method => :get }