From: Teryk Bellahsene Date: Tue, 16 Jun 2015 09:31:48 +0000 (+0200) Subject: SONAR-6574 remove routes to RoR WS api/metrics/* X-Git-Tag: 5.2-RC1~1470 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1581cca25da454826875f52751b40ed0e945b85f;p=sonarqube.git SONAR-6574 remove routes to RoR WS api/metrics/* --- diff --git a/server/sonar-web/src/main/webapp/WEB-INF/config/routes.rb b/server/sonar-web/src/main/webapp/WEB-INF/config/routes.rb index 2a60362d112..29a2653ff77 100644 --- a/server/sonar-web/src/main/webapp/WEB-INF/config/routes.rb +++ b/server/sonar-web/src/main/webapp/WEB-INF/config/routes.rb @@ -13,11 +13,6 @@ ActionController::Routing::Routes.draw do |map| map.connect 'batch_bootstrap/index', :controller => 'api/java_ws', :action => 'index', :wspath => 'batch', :wsaction => 'index' map.connect 'batch/:name', :controller => 'api/java_ws', :action => 'index', :wspath => 'batch', :wsaction => 'file', :requirements => { :name => /.*/ } - map.connect 'api/metrics', :controller => 'api/metrics', :action => 'index', :conditions => { :method => :get } - map.connect 'api/metrics/:id', :controller => 'api/metrics', :action => 'show', :conditions => { :method => :get } - map.connect 'api/metrics/:id', :controller => 'api/metrics', :action => 'create', :conditions => { :method => :post } - map.connect 'api/metrics/:id', :controller => 'api/metrics', :action => 'update', :conditions => { :method => :put } - map.connect 'api/metrics/:id', :controller => 'api/metrics', :action => 'destroy', :conditions => { :method => :delete } map.connect 'api/server/:action', :controller => 'api/server' map.connect 'api/resoures', :controller => 'api/resources', :action => 'index' map.connect 'api/sources', :controller => 'api/sources', :action => 'index'