aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2016-12-22 09:45:15 +0100
committerStas Vilchik <vilchiks@gmail.com>2016-12-22 09:52:03 +0100
commitfbe04019805e2a900165a3bb08c6e29a5b3e6dd5 (patch)
tree815d65a93d557527d23b61d9f2a94233f17a7aa7
parent360ea9d0f9e7771adb1699c9add28a05bac4c55d (diff)
downloadsonarqube-fbe04019805e2a900165a3bb08c6e29a5b3e6dd5.tar.gz
sonarqube-fbe04019805e2a900165a3bb08c6e29a5b3e6dd5.zip
drop api/events WS
-rw-r--r--server/sonar-web/src/main/js/api/events.js35
-rw-r--r--server/sonar-web/src/main/webapp/WEB-INF/config/routes.rb1
2 files changed, 0 insertions, 36 deletions
diff --git a/server/sonar-web/src/main/js/api/events.js b/server/sonar-web/src/main/js/api/events.js
deleted file mode 100644
index 7d9d2da53e0..00000000000
--- a/server/sonar-web/src/main/js/api/events.js
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * SonarQube
- * Copyright (C) 2009-2016 SonarSource SA
- * mailto:contact AT sonarsource DOT com
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-import { getJSON } from '../helpers/request.js';
-
-/**
- * Return events for a component
- * @param {string} componentKey
- * @param {string} [categories]
- * @returns {Promise}
- */
-export function getEvents (componentKey, categories) {
- const url = '/api/events';
- const data = { resource: componentKey };
- if (categories) {
- data.categories = categories;
- }
- return getJSON(url, data);
-}
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 e51f89c25d8..fdb9431c329 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
@@ -1,6 +1,5 @@
ActionController::Routing::Routes.draw do |map|
map.namespace :api do |api|
- api.resources :events, :only => [:index, :show, :create, :destroy]
api.resources :user_properties, :only => [:index, :show, :create, :destroy], :requirements => { :id => /.*/ }
api.resources :projects, :only => [:index], :requirements => { :id => /.*/ }
api.resources :favourites, :only => [:index, :show, :create, :destroy], :requirements => { :id => /.*/ }