var express = require('express');
var router = express.Router();
router.get('/', function(req, res, next) {
res.render('index', { title: 'Express' });
});
module.exports = router;
function(req, res, next) {
res.render('index', { title: 'Express' });
}
module.exports.routeName = function(req, res, next) {
res.render('index', { title: 'Express' });
};
const controllerName = require('./controllers/controllerName.js');
router.get('/', controllerName.routeName);