1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-06-09 01:17:06 +02:00
unleash.unleash/frontend/src/data/history-api.js
2016-11-13 11:26:27 +01:00

14 lines
236 B
JavaScript

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