mirror of
https://github.com/Permissionless-Software-Foundation/bch-dex.git
synced 2026-09-21 16:52:00 -07:00
Use glob function instead of Glob constructor
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user