import { ENV } from 'config/env'

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

export const API_ROOT = APIS[ENV]

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