208417e751
supports connecting to an external goosed in client/server mode
6 lines
259 B
TypeScript
6 lines
259 B
TypeScript
export const getApiUrl = (endpoint: string): string => {
|
|
const gooseApiHost = String(window.appConfig.get('GOOSE_API_HOST') || '');
|
|
const cleanEndpoint = endpoint.startsWith('/') ? endpoint : `/${endpoint}`;
|
|
return `${gooseApiHost}${cleanEndpoint}`;
|
|
};
|