]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-6574 remove routes to RoR WS api/metrics/*
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>
Tue, 16 Jun 2015 09:31:48 +0000 (11:31 +0200)
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>
Tue, 16 Jun 2015 09:31:48 +0000 (11:31 +0200)
server/sonar-web/src/main/webapp/WEB-INF/config/routes.rb

index 2a60362d1120e18718b57752c3ae51f4d340cdc7..29a2653ff7759b7cbc96098540022b6654e66098 100644 (file)
@@ -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'