diff options
author | Fabrice Bellingard <bellingard@gmail.com> | 2011-05-31 10:01:22 +0200 |
---|---|---|
committer | Fabrice Bellingard <bellingard@gmail.com> | 2011-05-31 10:04:42 +0200 |
commit | c9c92152de83283b07dc4c5a876730af98b1ac56 (patch) | |
tree | 9c5078a392cac4e95df56ff48f2720610ea0ec7d /sonar-server/src/main/webapp/WEB-INF/config | |
parent | 49d5f33b357d2a49cee0f2a511cd354a21ec6398 (diff) | |
download | sonarqube-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.rb | 1 |
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 } |