Initial commit from ux_aura_assistant
This commit is contained in:
21
services/appBuilder/config.ts
Normal file
21
services/appBuilder/config.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
export const getAppBuilderApiBaseUrl = (): string => {
|
||||
const isStudioMode = window.location.href.includes('.goog');
|
||||
if (isStudioMode) {
|
||||
// Management APIs (RBAC, Auth) in the HumanizeIQ ecosystem usually sit under this segment
|
||||
return 'https://www.playtest.humanizeiq.ai/api/ai_studio_manager_api';
|
||||
} else {
|
||||
// In deployed mode, use a relative path.
|
||||
return '/api/ai_studio_manager_api';
|
||||
}
|
||||
};
|
||||
export const getUserManagementApiBaseUrl = (): string => {
|
||||
const isStudioMode = window.location.href.includes('.goog');
|
||||
if (isStudioMode) {
|
||||
// Management APIs (RBAC, Auth) in the HumanizeIQ ecosystem usually sit under this segment
|
||||
return 'https://www.playtest.humanizeiq.ai/api/user_management';
|
||||
} else {
|
||||
// In deployed mode, use a relative path.
|
||||
return '/api/user_management';
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user