selfapi.js
function (baseUrl) {
    var fullUrl = url.parse(String(baseUrl || '/'));
    fullUrl.pathname = normalizePath(this.path, fullUrl.pathname);
    fullUrl = url.format(fullUrl);

    var routes = {};
    Object.keys(this.children).forEach(function (child) {
      routes[child.replace(/^\//, '')] = nodepath.join(fullUrl, child);
    });
    return routes;
  }
function (baseUrl) {
    var fullUrl = url.parse(String(baseUrl || '/'));
    fullUrl.pathname = normalizePath(this.path, fullUrl.pathname);
    fullUrl = url.format(fullUrl);

    var routes = {};
    Object.keys(this.children).forEach(function (child) {
      routes[child.replace(/^\//, '')] = nodepath.join(fullUrl, child);
    });
    return routes;
  }
function ( baseUrl ) { var fullUrl = url . parse ( String ( baseUrl || '/' ) ) ; fullUrl . pathname = normalizePath ( this . path , fullUrl . pathname ) ; fullUrl = url . format ( fullUrl ) ; var routes = { } ; Object . keys ( this . children ) . forEach ( function ( child ) { routes [ child . replace ( / ^\/ / , '' ) ] = nodepath . join ( fullUrl , child ) ; } ) ; return routes ; }
Build index routes.
Build index routes .