Unrated orders error fixed
This commit is contained in:
6
ordering_site/src/utils/api.ts
Normal file
6
ordering_site/src/utils/api.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export const getApiBaseUrl = (): string => {
|
||||
if (window.location.protocol === 'https:') {
|
||||
return 'https://cmsapi.rit-services.in';
|
||||
}
|
||||
return `http://${window.location.hostname}:8080`;
|
||||
};
|
||||
Reference in New Issue
Block a user