summaryrefslogtreecommitdiffstats
path: root/ui-react/src/api/UserService.js
diff options
context:
space:
mode:
authorSébastien Determe <sebastien.determe@intl.att.com>2020-08-03 13:56:26 +0000
committerGerrit Code Review <gerrit@onap.org>2020-08-03 13:56:26 +0000
commit7bb6438727bf6bc91d8471bcf00e4736c691ae1b (patch)
treee7617388af045b9c36ec16afe3bc59db91d215f4 /ui-react/src/api/UserService.js
parentcaf78ac9ef48e7afacbfbd14f7b6dc1c9cecc992 (diff)
parente673a058c995392b3ad6cbab91a9571bed29a57b (diff)
Merge "Clamp react ui to use url pathname dynamically instead of hardcoded prefix for calling apis"
Diffstat (limited to 'ui-react/src/api/UserService.js')
-rw-r--r--ui-react/src/api/UserService.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui-react/src/api/UserService.js b/ui-react/src/api/UserService.js
index 477ca4269..5fb4aa6b4 100644
--- a/ui-react/src/api/UserService.js
+++ b/ui-react/src/api/UserService.js
@@ -24,7 +24,7 @@
export default class UserService {
static notLoggedUserName='Anonymous';
static login() {
- return fetch('/restservices/clds/v1/user/getUser', {
+ return fetch(window.location.pathname + 'restservices/clds/v1/user/getUser', {
method: 'GET',
credentials: 'same-origin'
})
@@ -49,7 +49,7 @@ export default class UserService {
}
static getUserInfo() {
- return fetch('/restservices/clds/v2/clampInformation', {
+ return fetch(window.location.pathname + 'restservices/clds/v2/clampInformation', {
method: 'GET',
credentials: 'same-origin'
})