mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-28 00:06:53 +01:00
19 lines
417 B
JavaScript
19 lines
417 B
JavaScript
var eventStore = require('./eventStore'),
|
|
eventType = require('./eventType'),
|
|
featuresMock = require('./featuresMock'),
|
|
Promise = require('bluebird');
|
|
|
|
eventStore.on(eventType.featureCreated, function (event) {
|
|
console.log('feature created event recieved', event);
|
|
}
|
|
);
|
|
|
|
function getFeatures() {
|
|
return Promise.resolve(featuresMock);
|
|
}
|
|
|
|
module.exports = {
|
|
getFeatures: getFeatures
|
|
};
|
|
|