init
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
var App = null;
|
||||
var Log = null
|
||||
var Helper = null;
|
||||
var Radio = null;
|
||||
|
||||
|
||||
exports.init = function(express) {
|
||||
App = express;
|
||||
Log = App.get('Log');
|
||||
Helper = App.get('Helper');
|
||||
Radio = App.get('Radio');
|
||||
};
|
||||
|
||||
|
||||
exports.index = function(req, res, next) {
|
||||
//Log.debug('Router: transfer ' + Radio.countChannels() + ' channels to frontend');
|
||||
|
||||
res.render('index', {
|
||||
title: 'Kitchen Radio',
|
||||
channels: Radio.getChannels()
|
||||
}
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user