1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-23 20:07:40 +02:00
unleash.unleash/frontend/src/data/client-strategy-api.js

14 lines
265 B
JavaScript
Raw Normal View History

2016-11-10 14:26:24 +01:00
import { throwIfNotSuccess, headers } from './helper';
const URI = '/client/strategies';
function fetchAll () {
return fetch(URI, { headers })
.then(throwIfNotSuccess)
.then(response => response.json());
}
module.exports = {
fetchAll,
};