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,