mirror of
https://github.com/Unleash/unleash.git
synced 2024-10-23 20:07:40 +02:00
14 lines
265 B
JavaScript
14 lines
265 B
JavaScript
import { throwIfNotSuccess, headers } from './helper';
|
|
|
|
const URI = '/client/strategies';
|
|
|
|
function fetchAll () {
|
|
return fetch(URI, { headers })
|
|
.then(throwIfNotSuccess)
|
|
.then(response => response.json());
|
|
}
|
|
|
|
module.exports = {
|
|
fetchAll,
|
|
};
|