mirror of
https://github.com/AlecM33/Werewolf.git
synced 2025-12-26 07:47:50 +01:00
remove admin api operation
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user