index.js
function normalizeRoute(path, parent) {
  if (path[0] === '/' || path[0] === '') {
    return path;  // absolute route
  }
  if (!parent) {
    return path;  // no need for a join
  }
  return `${parent.route}/${path}`; // join
}
function normalizeRoute(path, parent) {
  if (path[0] === '/' || path[0] === '') {
    return path;  // absolute route
  }
  if (!parent) {
    return path;  // no need for a join
  }
  return `${parent.route}/${path}`; // join
}
function normalizeRoute ( path , parent ) { if ( path [ 0 ] === '/' || path [ 0 ] === '' ) { return path ; // absolute route } if ( ! parent ) { return path ; // no need for a join } return ` ${ parent . route } ${ path } ` ; // join }
Normalize route based on the parent.
Normalize route based on the parent .