From cd199aa4be6643fdbe8be980f53f6bef73cd411d Mon Sep 17 00:00:00 2001 From: Brandon Stull Date: Tue, 16 Oct 2018 12:49:01 -0400 Subject: [PATCH] Adding basic scaffolding for supporting saving/recalling play states. --- express.js | 5 +++++ views/player_mdk.html | 1 + 2 files changed, 6 insertions(+) diff --git a/express.js b/express.js index 464e824..d33ef88 100644 --- a/express.js +++ b/express.js @@ -493,6 +493,11 @@ module.exports = (app) => { app.use(['/api/json/session_play_verify', '/api/json/session_author_verify'] , (req, res) => res.send('true')); + app.use('/api/json/play_state_save', (req, res) => { + console.log('SAVING STATE'); + console.log(req.body.data[1]); + }) + app.use('/api/json/play_logs_save', (req, res) => { const logs = JSON.parse(req.body.data)[1]; console.log("========== Play Logs Received ==========\r\n", logs, "\r\n============END PLAY LOGS================"); diff --git a/views/player_mdk.html b/views/player_mdk.html index 8dd35b7..9adee72 100644 --- a/views/player_mdk.html +++ b/views/player_mdk.html @@ -13,6 +13,7 @@