Created
April 26, 2016 13:36
-
-
Save vcanales/f0bec70899c70ab40ea580d2360ed229 to your computer and use it in GitHub Desktop.
Load Controllers
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
loadControllers() { | |
let controllers = fs.readdirSync('./controllers'); | |
controllers.map((file) => { | |
if (file != config.controllers.mainController) { | |
this.files.push(file); | |
this.controllers.push(JSON.parse(`{ "fileName": "${file}", "actions": [] }`)); | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment