express-template/routes/index.js

10 lines
205 B
JavaScript
Raw Normal View History

2021-06-19 09:55:58 +00:00
var express = require('express');
var router = express.Router();
/* GET home page. */
router.get('/', function(req, res, next) {
res.render('index', { title: 'Express' });
});
module.exports = router;