Last active
August 29, 2015 14:00
-
-
Save artcommacode/11249508 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
routes.get('/', controller.index(controller)); | |
controller.index = function (controller) { | |
return function (req, res, next) { | |
}; | |
}; |
This file contains hidden or 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
routes.get('/', function (req, res, next) { | |
controller.index(req, res, next, controller); | |
}; | |
controller.index = function (req, res, next, controller) { | |
}; |
This file contains hidden or 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
// 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