Skip to content

Commit

Permalink
examples: fix mvc example to ignore files in controllers dir
Browse files Browse the repository at this point in the history
fixes #3182
  • Loading branch information
dougwilson committed Jan 27, 2017
1 parent dc48f27 commit 6b506d8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/mvc/lib/boot.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ var fs = require('fs');
module.exports = function(parent, options){
var verbose = options.verbose;
fs.readdirSync(__dirname + '/../controllers').forEach(function(name){
if (!fs.statSync(__dirname + '/../controllers/' + name).isDirectory()) return;
verbose && console.log('\n %s:', name);
var obj = require('./../controllers/' + name);
var name = obj.name || name;
Expand Down

0 comments on commit 6b506d8

Please sign in to comment.