@ordino.ai/cli
Version:
ordino.ai global command line interface
28 lines (27 loc) • 940 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getApiEndpoints = void 0;
var STAGING_ENDPOINTS = {
authentication: "https://staging.dev-portal.spartify.io/api-keys/authentication",
projects: "https://staging.dev-portal.spartify.io/projects",
teams: "https://staging.dev-portal.spartify.io/teams",
users: "https://staging.dev-portal.spartify.io/users"
};
var PRODUCTION_ENDPOINTS = {
authentication: "https://dev-portal.spartify.io/api-keys/authentication",
projects: "https://dev-portal.spartify.io/projects",
teams: "https://dev-portal.spartify.io/teams",
users: "https://dev-portal.spartify.io/users"
};
var getApiEndpoints = exports.getApiEndpoints = function getApiEndpoints(environment) {
switch (environment) {
case "staging":
return STAGING_ENDPOINTS;
case "production":
return PRODUCTION_ENDPOINTS;
default:
return PRODUCTION_ENDPOINTS;
}
};