code: function normalizePath (path, basePath) {
    var joined = nodepath.join(basePath || '/', path || '');
    var normalized = nodepath.normalize(joined);
  
    return (normalized !== '/' ? normalized : null);
  }
docs: Normalize a given API resource path (optionally from a base path).