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
2020-02-20 08:30:35 +01:00

14 lines
233 B
JavaScript

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