mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +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});
 | 
						|
        });
 | 
						|
    });
 | 
						|
}; |