index.js
function getPath (path, name, profiles, label) {
  const profilesStr = buildProfilesString(profiles)

  return (path.endsWith('/') ? path : path + '/') +
        encodeURIComponent(name) + '/' +
        encodeURIComponent(profilesStr) +
        (label ? '/' + encodeURIComponent(label) : '')
}
function getPath (path, name, profiles, label) {
  const profilesStr = buildProfilesString(profiles)

  return (path.endsWith('/') ? path : path + '/') +
        encodeURIComponent(name) + '/' +
        encodeURIComponent(profilesStr) +
        (label ? '/' + encodeURIComponent(label) : '')
}
function getPath ( path , name , profiles , label ) { const profilesStr = buildProfilesString ( profiles ) return ( path . endsWith ( '/' ) ? path : path + '/' ) + encodeURIComponent ( name ) + '/' + encodeURIComponent ( profilesStr ) + ( label ? '/' + encodeURIComponent ( label ) : '' ) }
Build spring config endpoint path

@param {string} path - host base path
@param {string} name - application name
@param {(string|string[])} [profiles] - list of profiles, if none specified will use 'default'
@param {string} [label] - environment id
@returns {string} spring config endpoint
Build spring config endpoint path