import { api } from './client'

export function fetchGatewayFleet(status) {
  const qs = status ? `?status=${encodeURIComponent(status)}` : ''
  return api.get(`/api/v1/operations/gateways${qs}`)
}

export function fetchGatewayDetail(gatewayId) {
  return api.get(`/api/v1/operations/gateways/${gatewayId}`)
}