This repository has been archived on 2024-04-05. You can view files and clone it, but cannot push or open issues/pull-requests.
score-tracker/routes/index.js

13 lines
322 B
JavaScript
Raw Normal View History

var express = require('express');
var router = express.Router();
router.get('/', function(req, res, next) {
2021-11-26 19:46:16 +00:00
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;