From 47fdf2ccb86310fb218c58ef0a84987e6b1077a4 Mon Sep 17 00:00:00 2001 From: sudoer777 <78781902+sudoer777@users.noreply.github.com> Date: Mon, 6 Dec 2021 10:43:40 -0700 Subject: [PATCH] Add /submit to redirect to /manage/game --- routes/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/routes/index.js b/routes/index.js index 42fa2b0..c18f5a5 100644 --- a/routes/index.js +++ b/routes/index.js @@ -1,9 +1,12 @@ var express = require('express'); var router = express.Router(); -/* GET home page. */ router.get('/', function(req, res, next) { res.render('index', { title: 'View Scores', userLoggedIn: !!req.user, hideHomeButton: true }); }); +router.get('/submit', function(req, res, next) { + res.redirect('/manage/game'); +}); + module.exports = router;