src/util/buildUrl.js
/**
 * Concatenate url with parameters from request options.
 *
 * @export
 * @param {Object} options request options including url and params
 * @returns {string}
 */
Concatenate url with parameters from request options.
@export
@param {Object} options request options including url and params
@returns {string}
Concatenate url with parameters from request options . @export @param { Object } options request options including url and params @returns { string }
function buildUrl (options) {
  let url = `${options.apiUrl}${options.url}`
  if (options.params) {
    url += `?${buildParams(options.params)}`
  }
  return url
}
function buildUrl ( options ) { let url = ` ${ options . apiUrl } ${ options . url } ` if ( options . params ) { url += ` ${ buildParams ( options . params ) } ` } return url }
Concatenate url with parameters from request options.
Concatenate url with parameters from request options .