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

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
};