lib/index.js
function _getFiles (route) {
  const dir = route[0]
  const prefix = route.splice(1).join('/')

  return _browseDir(dir)
    .map(file => require(file))
    .reduce((acc, routes) => acc.concat(routes), [])
    .map(routes => _normalizeUrl(routes, prefix))
}
function _getFiles (route) {
  const dir = route[0]
  const prefix = route.splice(1).join('/')

  return _browseDir(dir)
    .map(file => require(file))
    .reduce((acc, routes) => acc.concat(routes), [])
    .map(routes => _normalizeUrl(routes, prefix))
}
function _getFiles ( route ) { const dir = route [ 0 ] const prefix = route . splice ( 1 ) . join ( '/' ) return _browseDir ( dir ) . map ( file => require ( file ) ) . reduce ( ( acc , routes ) => acc . concat ( routes ) , [ ] ) . map ( routes => _normalizeUrl ( routes , prefix ) ) }
return all imported routes
@param  {Array.<String...>} route   directory with extra configuration
@return {Array.<Object>}            imported routes
return all imported routes