var express = require('express'); var router = express.Router(); var homeController = require('../controllers/home'); /* GET home page. */ router.route('/') .get(homeController.getIndex); router.route('/about') .get(homeController.getAbout); module.exports = router;