mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
14 lines
267 B
JavaScript
14 lines
267 B
JavaScript
import { throwIfNotSuccess, headers } from './helper';
|
|
|
|
const URI = 'api/client/instances';
|
|
|
|
function fetchAll () {
|
|
return fetch(URI, { headers })
|
|
.then(throwIfNotSuccess)
|
|
.then(response => response.json());
|
|
}
|
|
|
|
module.exports = {
|
|
fetchAll,
|
|
};
|