1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
unleash.unleash/public/js/stores/EventStore.js

26 lines
473 B
JavaScript

var reqwest = require('reqwest');
var TYPE = 'json';
var CONTENT_TYPE = 'application/json';
var EventStore = {
getEvents: function () {
return reqwest({
url: 'events',
method: 'get',
type: TYPE
});
},
getEventsByName: function (name) {
return reqwest({
url: 'events/' + name,
method: 'get',
type: TYPE
});
}
};
module.exports = EventStore;