1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-28 00:06:53 +01:00
unleash.unleash/unleash-server/lib/featureDb.js

20 lines
451 B
JavaScript
Raw Normal View History

var eventStore = require('./eventStore'),
eventType = require('./eventType'),
featuresMock = require('./featuresMock'),
logger = require('./logger'),
Promise = require('bluebird');
eventStore.on(eventType.featureCreated, function (event) {
logger.info('feature created event recieved', event);
}
);
function getFeatures() {
return Promise.resolve(featuresMock);
}
module.exports = {
getFeatures: getFeatures
};