Skip to content

Instantly share code, notes, and snippets.

@artcommacode
Last active August 29, 2015 14:00
Show Gist options
  • Save artcommacode/11249508 to your computer and use it in GitHub Desktop.
Save artcommacode/11249508 to your computer and use it in GitHub Desktop.
routes.get('/', controller.index(controller));
controller.index = function (controller) {
return function (req, res, next) {
};
};
routes.get('/', function (req, res, next) {
controller.index(req, res, next, controller);
};
controller.index = function (req, res, next, controller) {
};
// some way of rebinding this in controller.index to not be the node req/res object?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment