Add submit messages

main
sudoer777 2021-09-30 14:55:01 -06:00
parent a23bf1ae3b
commit a12df8aab2
1 changed files with 6 additions and 1 deletions

View File

@ -3,7 +3,12 @@ var router = express.Router();
/* GET submit page. */ /* GET submit page. */
router.get('/', function(req, res, next) { 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; module.exports = router;