import { ENV } from 'config/env'

const APIS = {
  preproduction: 'https://auth.insports.tv',
  production: 'https://auth.insports.tv',
  staging: 'https://auth.test.insports.tv',
}

export const API_ROOT = APIS[ENV]

export const getApiUrl = (path: string) => (
  `${API_ROOT}${path}${window.location.search}`
)
