9 lines
182 B
JavaScript
9 lines
182 B
JavaScript
|
import global from "./Global.json"
|
||
|
|
||
|
export function getAPI(API_NAME) {
|
||
|
return global.api.host + global.api[API_NAME];
|
||
|
}
|
||
|
|
||
|
export function getHost() {
|
||
|
return global.api.host;
|
||
|
}
|