Files
jambotron/jambotron-ui/src/app/global-constants.ts
T

16 lines
353 B
TypeScript

import {environment} from '../environments/environment';
export class GlobalConstants {
public static readonly API_URL = (() => {
// ... calculate the value and return it
if(environment.production) {
return `${environment.host_name}/api`;
}else {
return `${environment.host_name}:${environment.port}/api`;
}
})();
}