ready4testing

This commit is contained in:
2015-11-02 13:46:34 +01:00
parent 08cd6febee
commit 39ab69f570
53 changed files with 23846 additions and 20 deletions
+13
View File
@@ -21,3 +21,16 @@ exports.index = function(req, res, next) {
}
);
}
exports.play = function(req, res, next) {
var id = req.params.id;
Log.trace('Router: ID ' + id + ' wanted');
if(Helper.isDefinedAndNotNull(Radio.getChannel(id))) {
Radio.play(id);
res.sendStatus(200);
} else {
res.sendStatus(400);
}
}