Files
tkmind_go/ui/desktop/src/config.ts
T
Michael Neale 208417e751 feat: external goosed server (#5978)
supports connecting to an external goosed in client/server mode
2025-12-15 14:04:39 +11:00

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}`;
};