Added refernce mirrored to mirror team position when sitting behind the main monitor

This commit is contained in:
2024-06-06 21:56:54 +02:00
parent c0ffac18e4
commit a27c38eeb3
4 changed files with 107 additions and 30 deletions
+8
View File
@@ -6,6 +6,7 @@ const timer = require('../controllers/timer');
const score = require('../controllers/score');
const cli = require('../controllers/cli');
const db = require('../controllers/db');
const etc = require('../controllers/etc');
// ######################################################################################################################################################
// General endpoints
@@ -132,6 +133,13 @@ router.get('/scoreToggleSideswitch', function(req, res, next) {
res.json(score.getValues());
});
// Express router endpoint to toggle reference mirrored attribute
router.get('/scoreToggleReferenceMirrored', function(req, res, next) {
score.toggleReferenceMirrored();
res.status(200);
res.json(score.getValues());
});
// Express router endpoint to get important score values
router.get('/scoreGetValues', function(req, res, next) {
res.json(score.getValues()); // Respond with important values for frontend