feat: implement event timer

This commit is contained in:
cv
2021-04-12 12:52:54 +02:00
parent f0cb09346d
commit 2642d786be
5 changed files with 164 additions and 33 deletions
+4 -4
View File
@@ -47,13 +47,13 @@ exports.pbRoll = async (req, res) => {
// Create controller for GET request to '/playback/previous'
// Sets timer object to roll mode
exports.pbPrevious = async (req, res) => {
console.log('previous: not implemented');
res.sendStatus(501);
global.timer.previous();
res.sendStatus(200);
};
// Create controller for GET request to '/playback/next'
// Sets timer object to roll mode
exports.pbNext = async (req, res) => {
console.log('next: not implemented');
res.sendStatus(501);
global.timer.next();
res.sendStatus(200);
};