aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/api/web-api.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/api/web-api.js')
-rw-r--r--server/sonar-web/src/main/js/api/web-api.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/api/web-api.js b/server/sonar-web/src/main/js/api/web-api.js
index d7c2c734df3..a790121e2d8 100644
--- a/server/sonar-web/src/main/js/api/web-api.js
+++ b/server/sonar-web/src/main/js/api/web-api.js
@@ -20,7 +20,7 @@
import { getJSON } from '../helpers/request';
export function fetchWebApi (showInternal = true) {
- const url = '/api/webservices/list';
+ const url = window.baseUrl + '/api/webservices/list';
const data = { 'include_internals': showInternal };
return getJSON(url, data).then(r => r.webServices.map(domain => {
@@ -31,7 +31,7 @@ export function fetchWebApi (showInternal = true) {
}
export function fetchResponseExample (domain, action) {
- const url = '/api/webservices/response_example';
+ const url = window.baseUrl + '/api/webservices/response_example';
const data = { controller: domain, action };
return getJSON(url, data);