code: function findRootAndNodeFromPath(path) {
      const parts = path.split('/');
      let i = parts.length;
      const info = {};
  
      while (i--) {
          if (parts[i] && !/({[\w]+})/.test(parts[i])) {
              info.node = parts[i];
              break;
          }
      }
  
      while (i--) {
          if (parts[i] && /({knowledgeBaseID})/i.test(parts[i]) && parts[i + 1]) {
              info.root = parts[i + 1];
              break;
          }
      }
      return info;
  }
docs: Finds the root and node from a url path.
  if {knowledgeBaseID} exist withing the
  path, these become the root and the first
  bracket pair after are the node.
  
  @param {string} path The endpoint path to parse
  @returns {{root:string, node:string}} The object containing the root and node