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

10 lines
232 B
JavaScript
Raw Normal View History

2014-10-24 15:32:33 +02:00
var eventDb = require('./eventDb');
module.exports = function (app) {
app.get('/events', function (req, res) {
eventDb.getEvents().then(function (events) {
res.json({events: events});
});
});
};