diff options
Diffstat (limited to 'ui-react/src/api')
-rw-r--r-- | ui-react/src/api/LoopActionService.js | 4 | ||||
-rw-r--r-- | ui-react/src/api/LoopService.js | 20 | ||||
-rw-r--r-- | ui-react/src/api/UserService.js | 6 |
3 files changed, 15 insertions, 15 deletions
diff --git a/ui-react/src/api/LoopActionService.js b/ui-react/src/api/LoopActionService.js index 6e45ce4b9..7e20e2f6c 100644 --- a/ui-react/src/api/LoopActionService.js +++ b/ui-react/src/api/LoopActionService.js @@ -28,7 +28,7 @@ export default class LoopActionService{ const svcAction = uiAction.toLowerCase(); return fetch("/restservices/clds/v2/loop/" + svcAction + "/" + cl_name, { method: 'PUT', - credentials: 'same-origin', + credentials: 'same-origin' }) .then(function (response) { if (response.ok) { @@ -53,7 +53,7 @@ export default class LoopActionService{ return fetch("/restservices/clds/v2/loop/getstatus/" + cl_name, { method: 'GET', - credentials: 'same-origin', + credentials: 'same-origin' }) .then(function (response) { if (response.ok) { diff --git a/ui-react/src/api/LoopService.js b/ui-react/src/api/LoopService.js index eece20c96..e2e234821 100644 --- a/ui-react/src/api/LoopService.js +++ b/ui-react/src/api/LoopService.js @@ -22,7 +22,7 @@ export default class LoopService { static getLoopNames() { - return fetch('/restservices/clds/v2/loop/getAllNames', { method: 'GET', credentials: 'same-origin', }) + return fetch('/restservices/clds/v2/loop/getAllNames', { method: 'GET', credentials: 'same-origin' }) .then(function (response) { console.debug("GetLoopNames response received: ", response.status); if (response.ok) { @@ -42,9 +42,9 @@ export default class LoopService { return fetch('/restservices/clds/v2/loop/' + loopName, { method: 'GET', headers: { - "Content-Type": "application/json", + "Content-Type": "application/json" }, - credentials: 'same-origin', + credentials: 'same-origin' }) .then(function (response) { console.debug("GetLoop response received: ", response.status); @@ -64,7 +64,7 @@ export default class LoopService { static getSvg(loopName) { return fetch('/restservices/clds/v2/loop/svgRepresentation/' + loopName, { method: 'GET', - credentials: 'same-origin', + credentials: 'same-origin' }) .then(function (response) { console.debug("svgRepresentation response received: ", response.status); @@ -86,9 +86,9 @@ export default class LoopService { method: 'POST', credentials: 'same-origin', headers: { - "Content-Type": "application/json", + "Content-Type": "application/json" }, - body: JSON.stringify(jsonData), + body: JSON.stringify(jsonData) }) .then(function (response) { console.debug("updateMicroservicePolicy response received: ", response.status); @@ -110,9 +110,9 @@ export default class LoopService { method: 'POST', credentials: 'same-origin', headers: { - "Content-Type": "application/json", + "Content-Type": "application/json" }, - body: JSON.stringify(jsonData), + body: JSON.stringify(jsonData) }) .then(function (response) { console.debug("updateOperationalPolicies response received: ", response.status); @@ -134,9 +134,9 @@ export default class LoopService { method: 'POST', credentials: 'same-origin', headers: { - "Content-Type": "application/json", + "Content-Type": "application/json" }, - body: JSON.stringify(jsonData), + body: JSON.stringify(jsonData) }) .then(function (response) { console.debug("updateGlobalProperties response received: ", response.status); diff --git a/ui-react/src/api/UserService.js b/ui-react/src/api/UserService.js index 37ec73d1a..8da6e3a71 100644 --- a/ui-react/src/api/UserService.js +++ b/ui-react/src/api/UserService.js @@ -26,7 +26,7 @@ export default class UserService { static login() { return fetch('/restservices/clds/v1/user/getUser', { method: 'GET', - credentials: 'same-origin', + credentials: 'same-origin' }) .then(function (response) { console.debug("getUser response received, status code:", response.status); @@ -51,7 +51,7 @@ export default class UserService { static logout() { return fetch('/restservices/clds/v1/user/logout', { method: 'POST', - credentials: 'same-origin', + credentials: 'same-origin' }) .then(function (response) { console.debug("logout response received, status code:", response.status); @@ -76,7 +76,7 @@ export default class UserService { static getUserInfo() { return fetch('/restservices/clds/v1/clds/cldsInfo', { method: 'GET', - credentials: 'same-origin', + credentials: 'same-origin' }) .then(function (response) { console.debug("getUserInfo response received, status code:", response.status); |