Added sideswitch functionality, cleanup, comments

This commit is contained in:
2024-05-28 23:00:32 +02:00
parent 835248a9dc
commit ad6ab2ecab
5 changed files with 60 additions and 9 deletions
+4 -1
View File
@@ -93,7 +93,10 @@ router.post('/scoreAlterScore', function(req, res, next) {
});
// Express router endpoint to switch the score after halftime
router.post('/scoreSwitch', function(req, res, next) {
router.get('/scoreToggleSideswitch', function(req, res, next) {
score.toggleSideswitch();
res.status(200);
res.json(score.getValues());
});
// Express router endpoint to get important score values