From a12df8aab27547bb324f2ce1e06a4ad0423b27d2 Mon Sep 17 00:00:00 2001 From: sudoer777 <78781902+sudoer777@users.noreply.github.com> Date: Thu, 30 Sep 2021 14:55:01 -0600 Subject: [PATCH] Add submit messages --- routes/submit.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/routes/submit.js b/routes/submit.js index 9f2355b..bdd7012 100644 --- a/routes/submit.js +++ b/routes/submit.js @@ -3,7 +3,12 @@ var router = express.Router(); /* GET submit page. */ router.get('/', function(req, res, next) { - res.render('submit', { title: 'Express' }); + res.send('Nothing to send'); +}); + +/* POST submit page. */ +router.post('/', function(req, res, next) { + res.send('Score sent'); }); module.exports = router;