UNPKG

@ordino.ai/cli

Version:
28 lines (27 loc) 924 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getApiEndpoints = void 0; var STAGING_ENDPOINTS = { authentication: "https://staging.dev-portal.ordino.ai/api-keys/authentication", projects: "https://staging.dev-portal.ordino.ai/projects", teams: "https://staging.dev-portal.ordino.ai/teams", users: "https://staging.dev-portal.ordino.ai/users" }; var PRODUCTION_ENDPOINTS = { authentication: "https://dev-portal.ordino.ai/api-keys/authentication", projects: "https://dev-portal.ordino.ai/projects", teams: "https://dev-portal.ordino.ai/teams", users: "https://dev-portal.ordino.ai/users" }; var getApiEndpoints = exports.getApiEndpoints = function getApiEndpoints(environment) { switch (environment) { case "staging": return STAGING_ENDPOINTS; case "production": return PRODUCTION_ENDPOINTS; default: return PRODUCTION_ENDPOINTS; } };