You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
363 B
14 lines
363 B
import { ENV } from 'config/env'
|
|
|
|
const APIS = {
|
|
preproduction: 'https://auth.insports.tv',
|
|
production: 'https://auth.test.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}`
|
|
)
|
|
|