1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-31 00:16:47 +01:00
unleash.unleash/packages/unleash-frontend-next/src/data/metrics-api.js

14 lines
233 B
JavaScript
Raw Normal View History

2016-11-04 22:14:58 +01:00
import { throwIfNotSuccess } from './helper';
2016-10-27 13:12:26 +02:00
2016-11-04 22:14:58 +01:00
const URI = '/metrics';
2016-10-27 13:12:26 +02:00
function fetchAll () {
return fetch(URI)
.then(throwIfNotSuccess)
.then(response => response.json());
}
module.exports = {
fetchAll,
};