aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/webapp
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2017-01-19 09:15:30 +0100
committerJulien Lancelot <julien.lancelot@sonarsource.com>2017-01-24 18:36:48 +0100
commit9efd31afdff37ac57d4bb7789cb618a31b1f8637 (patch)
tree3d783416f6bcf7c545c790de5e63356083eee255 /server/sonar-web/src/main/webapp
parent8a95ac00fd47158f20676c27c90c613d45b9aede (diff)
downloadsonarqube-9efd31afdff37ac57d4bb7789cb618a31b1f8637.tar.gz
sonarqube-9efd31afdff37ac57d4bb7789cb618a31b1f8637.zip
SONAR-6310 Delete WS api/profiles/index
Diffstat (limited to 'server/sonar-web/src/main/webapp')
-rw-r--r--server/sonar-web/src/main/webapp/WEB-INF/app/controllers/api/profiles_controller.rb21
1 files changed, 0 insertions, 21 deletions
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/api/profiles_controller.rb b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/api/profiles_controller.rb
index 20cd93a5b96..d2d399038c0 100644
--- a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/api/profiles_controller.rb
+++ b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/api/profiles_controller.rb
@@ -81,28 +81,7 @@ class Api::ProfilesController < Api::ApiController
format.text { render :text => text_not_supported }
end
end
-
- # GET /api/profiles?language=<language>[&name=<name>]
- def index
- require_parameters :language
-
- language=params[:language]
- name=params[:name]
- if name.blank?
- @profile=Profile.by_default(language)
- else
- @profile=Profile.find_by_name_and_language(name, language)
- end
- not_found('Profile not found') unless @profile
- @active_rules=filter_rules()
-
- respond_to do |format|
- format.json { render :json => jsonp(to_json) }
- format.xml { render :xml => to_xml }
- format.text { render :text => text_not_supported }
- end
- end
private