aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/api/measures.js
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2016-06-15 09:36:50 +0200
committerGitHub <noreply@github.com>2016-06-15 09:36:50 +0200
commit9c53b1dc08d0d07625abd0f77139021384082d28 (patch)
tree0f0175f77d7b82f61d4db763b60229395006f631 /server/sonar-web/src/main/js/api/measures.js
parenta115682465bbd4e9c46c86ea03229b4f513a78d5 (diff)
downloadsonarqube-9c53b1dc08d0d07625abd0f77139021384082d28.tar.gz
sonarqube-9c53b1dc08d0d07625abd0f77139021384082d28.zip
SONAR-7717 automatically handle baseUrl (#1039)
Diffstat (limited to 'server/sonar-web/src/main/js/api/measures.js')
-rw-r--r--server/sonar-web/src/main/js/api/measures.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/api/measures.js b/server/sonar-web/src/main/js/api/measures.js
index e182dab8174..0b6bd6b4716 100644
--- a/server/sonar-web/src/main/js/api/measures.js
+++ b/server/sonar-web/src/main/js/api/measures.js
@@ -20,13 +20,13 @@
import { getJSON } from '../helpers/request.js';
export function getMeasures (componentKey, metrics) {
- const url = window.baseUrl + '/api/measures/component';
+ const url = '/api/measures/component';
const data = { componentKey, metricKeys: metrics.join(',') };
return getJSON(url, data).then(r => r.component.measures);
}
export function getMeasuresAndMeta (componentKey, metrics, additional = {}) {
- const url = window.baseUrl + '/api/measures/component';
+ const url = '/api/measures/component';
const data = Object.assign({}, additional, {
componentKey,
metricKeys: metrics.join(',')