Add submit messages
parent
a23bf1ae3b
commit
a12df8aab2
|
@ -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;
|
||||||
|
|
Reference in New Issue