Last active
August 29, 2015 14:21
-
-
Save cpjk/49968e8865d22d4fd788 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// controllers/home_controller.js | |
var homeController = { | |
index: function(req, res, next) { | |
res.render('index', { title: 'Express', fuck: 'FUCK' }); | |
} | |
} | |
module.exports = homeController; | |
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ | |
//routers/index.js | |
var express = require('express'); | |
var router = express.Router(); | |
var homeController = require('controllers/home_controller') | |
/* GET home page. */ | |
router.get('/', homeController.index); | |
module.exports = router; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment