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
registerRoutes(dir) { | |
//Check if recursive directory has been provided | |
if (!dir) | |
dir = ''; | |
//Set the base directory | |
let baseDirectory = process.cwd() + '/routes'; | |
//Set current directory | |
let currentDirectory = baseDirectory + dir; | |
//Get all items from directory passed with or base |