Use glob function instead of Glob constructor

This commit is contained in:
Adrian Obelmejias
2016-02-15 17:11:57 -05:00
parent 989073056f
commit 235e3caabe
+2 -2
View File
@@ -1,7 +1,7 @@
import { Glob } from 'glob'
import glob from 'glob'
exports = module.exports = function Controllers(app) {
new Glob(`${__dirname}/*.js`, { ignore: '**/index.js' }, (err, matches) => {
glob(`${__dirname}/*.js`, { ignore: '**/index.js' }, (err, matches) => {
if (err) { throw err }
matches.forEach((file) => {