Added sideswitch functionality, cleanup, comments
This commit is contained in:
parent
835248a9dc
commit
ad6ab2ecab
5 changed files with 60 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue