1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00
unleash.unleash/frontend/src/data/client-strategy-api.js
2016-11-10 16:09:48 +01:00

14 lines
269 B
JavaScript

import { throwIfNotSuccess, headers } from './helper';
const URI = '/api/client/strategies';
function fetchAll () {
return fetch(URI, { headers })
.then(throwIfNotSuccess)
.then(response => response.json());
}
module.exports = {
fetchAll,
};