'use strict'

const createStream = require('./req-stream')

function createClient (opts) {
  const client = createStream(opts)

  client.sails = {
    all: client.bind(client, {path: 'velas-de-windsurf-es-2'})
  }

  client.boards = {
    all: client.bind(client, {path: 'tablas-de-windsurf'})
  }

  client.booms = {
    all: client.bind(client, {path: 'botavaras-de-windsurf'})
  }

  client.masts = {
    all: client.bind(client, {path: 'mastiles-de-windsurf-es-2'})
  }

  client.accesories = {
    used: client.bind(client, {path: 'windsurfing-2ndhand-accesories'}),
    new: client.bind(client, {path: 'windsurfing-accesories'})
  }

  return client
}

module.exports = createClient

'use strict'

const createStream = require('./req-stream')

function createClient (opts) {
  const client = createStream(opts)

  client.sails = {
    all: client.bind(client, {path: 'velas-de-windsurf-es-2'})
  }

  client.boards = {
    all: client.bind(client, {path: 'tablas-de-windsurf'})
  }

  client.booms = {
    all: client.bind(client, {path: 'botavaras-de-windsurf'})
  }

  client.masts = {
    all: client.bind(client, {path: 'mastiles-de-windsurf-es-2'})
  }

  return client
}

module.exports = createClient

Remove unnecessary path