Skip to content

Instantly share code, notes, and snippets.

@nicholasess
Created July 6, 2014 13:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicholasess/002d029a7294edce133f to your computer and use it in GitHub Desktop.
Save nicholasess/002d029a7294edce133f to your computer and use it in GitHub Desktop.
module.exports = function(app){
var home = app.controllers.home;
app.get('/', home.index);
app.get('/login', home.login);
}
var HomeController = function(){
index: function(req, res){
},
login: function(req, res){
}
}
module.exports = HomeController;
views/
home/
index.html
login.html
about.html
contact.html
blog.html
views/
home/
index.html
login.html
controllers/
HomeController.js
routes/
home.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment