From 85c0d6c7805e77513474dedf3b19be09906bc2da Mon Sep 17 00:00:00 2001 From: AlecM33 Date: Thu, 21 Jul 2022 22:04:14 -0400 Subject: [PATCH] remove admin api operation --- server/api/AdminAPI.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/server/api/AdminAPI.js b/server/api/AdminAPI.js index 4854583..394c581 100644 --- a/server/api/AdminAPI.js +++ b/server/api/AdminAPI.js @@ -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;