1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00
unleash.unleash/frontend/src/data/client-instance-api.js
2016-12-27 13:00:07 +01:00

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,
};