feat(vtiger-crm): add vtiger crm integration
This commit is contained in:
10
packages/backend/src/apps/vtiger-crm/common/set-base-url.js
Normal file
10
packages/backend/src/apps/vtiger-crm/common/set-base-url.js
Normal file
@@ -0,0 +1,10 @@
|
||||
const setBaseUrl = ($, requestConfig) => {
|
||||
const domain = $.auth.data.domain;
|
||||
if (domain) {
|
||||
requestConfig.baseURL = `https://${domain}.vtiger.com`;
|
||||
}
|
||||
|
||||
return requestConfig;
|
||||
};
|
||||
|
||||
export default setBaseUrl;
|
Reference in New Issue
Block a user