meanjs/mean — pull request #297 by jellekralt (2014-12-09 19:54:12+00:00)
Title: Added controller init

With some projects, I want to load some logic when the server starts. Because I don't want to modify the express.js file too heavily with project specific stuff, I've added globbing of the controllers and a check if that module has an 'init' function. If so, the init function will be executed when the server starts. In this way, you can load stuff when the server starts while the logic stays in the controllers.