-
-
Save jcolebrand/3841210adf03f17a6c5c 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
exports = module.exports = function _SomeController(models) { /* Notice that we are passing in a model "repository" here, where this needs to be documented, but you ask for them by namespace (file layout) */ | |
this.Index = function _index(id) { | |
ViewBag = {"cole":"is cool"}; | |
ViewBag["id"] = id; | |
return View(); | |
} | |
} | |
exports.config = module.exports.config = { | |
"Index": ["GET"] /* whereby we can do things at a meta level and add decorators, of a sort */ | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment