diff --git a/frontend/src/data/applications-api.js b/frontend/src/data/applications-api.js index 3bd5a85606..5823d8d3d1 100644 --- a/frontend/src/data/applications-api.js +++ b/frontend/src/data/applications-api.js @@ -1,6 +1,6 @@ import { throwIfNotSuccess, headers } from './helper'; -const URI = '/api/client/applications'; +const URI = 'api/client/applications'; function fetchAll () { return fetch(URI, { headers }) diff --git a/frontend/src/data/archive-api.js b/frontend/src/data/archive-api.js index 07dd762f16..ed3fa96525 100644 --- a/frontend/src/data/archive-api.js +++ b/frontend/src/data/archive-api.js @@ -1,6 +1,6 @@ import { throwIfNotSuccess, headers } from './helper'; -const URI = '/api/archive'; +const URI = 'api/archive'; function fetchAll () { return fetch(`${URI}/features`) diff --git a/frontend/src/data/client-instance-api.js b/frontend/src/data/client-instance-api.js index ad6882c078..109d511196 100644 --- a/frontend/src/data/client-instance-api.js +++ b/frontend/src/data/client-instance-api.js @@ -1,6 +1,6 @@ import { throwIfNotSuccess, headers } from './helper'; -const URI = '/api/client/instances'; +const URI = 'api/client/instances'; function fetchAll () { return fetch(URI, { headers }) diff --git a/frontend/src/data/feature-api.js b/frontend/src/data/feature-api.js index fa4697e082..cd6b06edf6 100644 --- a/frontend/src/data/feature-api.js +++ b/frontend/src/data/feature-api.js @@ -1,7 +1,7 @@ import { throwIfNotSuccess, headers } from './helper'; -const URI = '/api/features'; -const URI_VALIDATE = '/api/features-validate'; +const URI = 'api/features'; +const URI_VALIDATE = 'api/features-validate'; function validateToggle (featureToggle) { return new Promise((resolve, reject) => { diff --git a/frontend/src/data/feature-metrics-api.js b/frontend/src/data/feature-metrics-api.js index 2fd653372c..2050b95deb 100644 --- a/frontend/src/data/feature-metrics-api.js +++ b/frontend/src/data/feature-metrics-api.js @@ -1,6 +1,6 @@ const { throwIfNotSuccess } = require('./helper'); -const URI = '/api/client/metrics/feature-toggles'; +const URI = 'api/client/metrics/feature-toggles'; function fetchFeatureMetrics () { return fetch(URI) @@ -8,7 +8,7 @@ function fetchFeatureMetrics () { .then(response => response.json()); } -const seenURI = '/api/client/seen-apps'; +const seenURI = 'api/client/seen-apps'; function fetchSeenApps () { return fetch(seenURI) diff --git a/frontend/src/data/history-api.js b/frontend/src/data/history-api.js index 1b894267ab..2c410b4aa6 100644 --- a/frontend/src/data/history-api.js +++ b/frontend/src/data/history-api.js @@ -1,6 +1,6 @@ import { throwIfNotSuccess } from './helper'; -const URI = '/api/events'; +const URI = 'api/events'; function fetchAll () { return fetch(URI) diff --git a/frontend/src/data/strategy-api.js b/frontend/src/data/strategy-api.js index d400882487..983290d564 100644 --- a/frontend/src/data/strategy-api.js +++ b/frontend/src/data/strategy-api.js @@ -1,6 +1,6 @@ import { throwIfNotSuccess, headers } from './helper'; -const URI = '/api/strategies'; +const URI = 'api/strategies'; function fetchAll () { return fetch(URI)