remove admin api operation

This commit is contained in:
AlecM33
2022-07-21 22:04:14 -04:00
parent 33ad6ffe90
commit 85c0d6c780

View File

@@ -36,9 +36,6 @@ router.use((req, res, next) => {
router.post('/sockets/broadcast', (req, res, next) => {
globals.CONTENT_TYPE_VALIDATOR(req, res, next);
});
router.put('/games/state', (req, res, next) => {
globals.CONTENT_TYPE_VALIDATOR(req, res, next);
});
// TODO: implement client-side display of this message.
router.post('/sockets/broadcast', function (req, res) {
@@ -55,12 +52,6 @@ router.get('/games/state', function (req, res) {
res.status(200).send(gamesArray);
});
router.put('/games/state', function (req, res) {
// TODO: validate the JSON object sent - ones that don't match the expected model could break the application.
gameManager.activeGameRunner.activeGames = req.body;
res.status(201).send(gameManager.activeGameRunner.activeGames);
});
/* validates Bearer Auth */
function isAuthorized (req) {
const header = req.headers.authorization;