@cobuildlab/8base-utils
Version:
This is package to deal with common scenarios working with 8base platform
13 lines (12 loc) • 484 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getEndpointUrl = void 0;
exports.getEndpointUrl = function (workspaceId, environment, endpoint) {
if (environment === void 0) { environment = 'Master'; }
if (endpoint === void 0) { endpoint = 'https://api.8base.com'; }
var baseEndpoint = endpoint + "/" + workspaceId;
if (environment === 'Master') {
return baseEndpoint;
}
return baseEndpoint + "_" + environment;
};