volume, stop
This commit is contained in:
@@ -33,4 +33,25 @@ exports.play = function(req, res, next) {
|
||||
} else {
|
||||
res.sendStatus(400);
|
||||
}
|
||||
}
|
||||
|
||||
exports.stop = function(req, res, next) {
|
||||
Log.trace('Router: stop playing');
|
||||
|
||||
Radio.stop();
|
||||
res.sendStatus(200);
|
||||
}
|
||||
|
||||
exports.volumeUp = function(req, res, next) {
|
||||
Log.trace('Router: volume up');
|
||||
|
||||
Radio.volumeUp();
|
||||
res.sendStatus(200);
|
||||
}
|
||||
|
||||
exports.volumeDown = function(req, res, next) {
|
||||
Log.trace('Router: volume down');
|
||||
|
||||
Radio.volumeDown();
|
||||
res.sendStatus(200);
|
||||
}
|
||||
Reference in New Issue
Block a user