index.js
function _getBlock (config, type, multi) {
  const options = {
    uri: _buildUrl(config, type, multi)
  }

  if (config.headers) {
    options['headers'] = config.headers
  }
  return request.get(options).then(result => { return { blockName: type, result: result } })
}
function _getBlock (config, type, multi) {
  const options = {
    uri: _buildUrl(config, type, multi)
  }

  if (config.headers) {
    options['headers'] = config.headers
  }
  return request.get(options).then(result => { return { blockName: type, result: result } })
}
function _getBlock ( config , type , multi ) { const options = { uri : _buildUrl ( config , type , multi ) } if ( config . headers ) { options [ 'headers' ] = config . headers } return request . get ( options ) . then ( result => { return { blockName : type , result : result } } ) }
Gets the block based on the given config and type.
@param {*} config the given config
@param {*} type the block type eg. image
@param {*} multi
Gets the block based on the given config and type .