From 7e2d84fa3f62f64a2f52cef106b9011792861601 Mon Sep 17 00:00:00 2001 From: martinRenou Date: Mon, 3 Jul 2017 16:57:26 +0100 Subject: [PATCH] Fix issue with the user name --- frontend/admin/admin-resources.js | 2 +- frontend/user/user-resources.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/admin/admin-resources.js b/frontend/admin/admin-resources.js index d8fa6da9f..9aa83c048 100644 --- a/frontend/admin/admin-resources.js +++ b/frontend/admin/admin-resources.js @@ -29,7 +29,7 @@ var API = (function () { // Object representing the interface to the Web API. // @param base_url : the url at which to find the web API endpoint. var self = {}; - self.base_urlpath = "/user/admin/"; + self.base_urlpath = window.apidata.base_url; self.default_options = { contentType: "application/json", cache: false, diff --git a/frontend/user/user-resources.js b/frontend/user/user-resources.js index d16061266..18d222b9d 100644 --- a/frontend/user/user-resources.js +++ b/frontend/user/user-resources.js @@ -29,7 +29,7 @@ var API = (function () { // Object representing the interface to the Web API. // @param base_url : the url at which to find the web API endpoint. var self = {}; - self.base_urlpath = "/user/test/"; + self.base_urlpath = window.apidata.base_url; self.default_options = { contentType: "application/json", cache: false,