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
269 B
JavaScript
Raw Normal View History

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