1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
unleash.unleash/packages/unleash-frontend/public/js/stores/EventStore.js
Simen Bekkhus 5aa14262a2 Fix linting errors (#145)
* Use pretty (svg) badges

* Fix build
2020-02-20 08:30:27 +01:00

26 lines
447 B
JavaScript

'use strict';
const reqwest = require('reqwest');
const TYPE = 'json';
const EventStore = {
getEvents () {
return reqwest({
url: 'events',
method: 'get',
type: TYPE,
});
},
getEventsByName (eventName) {
return reqwest({
url: `events/${eventName}`,
method: 'get',
type: TYPE,
});
},
};
module.exports = EventStore;