mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
5aa14262a2
* Use pretty (svg) badges * Fix build
26 lines
447 B
JavaScript
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;
|