Moved routesInDirectory() function to service provider