serviceLocator is a bit verbose.
I think it'd be sensible to introduce the convention of calling it services (convention, rather than renaming the module, because it's up to the functions that accept it to give it a name) eg:
function createRoutes(services) {
services.router.get('/', function (req, res) {
services.logger.log('Serving /')
})
}
Thoughts?
serviceLocatoris a bit verbose.I think it'd be sensible to introduce the convention of calling it
services(convention, rather than renaming the module, because it's up to the functions that accept it to give it a name) eg:Thoughts?