mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-31 00:16:47 +01:00
14 lines
233 B
JavaScript
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,
|
|
};
|