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
Raw Normal View History

2014-11-13 15:14:41 +01:00
var reqwest = require('reqwest');
var TYPE = 'json';
var CONTENT_TYPE = 'application/json';
2014-11-13 15:14:41 +01:00
var EventStore = {
getEvents: function () {
return reqwest({
url: 'events',
method: 'get',
type: TYPE
});
2014-11-17 11:15:10 +01:00
},
getEventsByName: function (name) {
return reqwest({
url: 'events/' + name,
method: 'get',
type: TYPE
});
2014-11-13 15:14:41 +01:00
}
2014-11-17 11:15:10 +01:00
2014-11-13 15:14:41 +01:00
};
module.exports = EventStore;