mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-28 00:06:53 +01:00
10 lines
232 B
JavaScript
10 lines
232 B
JavaScript
|
var eventDb = require('./eventDb');
|
||
|
|
||
|
module.exports = function (app) {
|
||
|
|
||
|
app.get('/events', function (req, res) {
|
||
|
eventDb.getEvents().then(function (events) {
|
||
|
res.json({events: events});
|
||
|
});
|
||
|
});
|
||
|
};
|