7 lines
196 B
TypeScript
7 lines
196 B
TypeScript
export const getApiBaseUrl = (): string => {
|
|
if (window.location.protocol === 'https:') {
|
|
return 'https://cmsapi.rit-services.in';
|
|
}
|
|
return `http://${window.location.hostname}:8080`;
|
|
};
|