UNPKG

@memori.ai/memori-api-client

Version:

React library to integrate a Memori in your app or website

14 lines 615 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getEngineApiUrl = exports.getBackendApiUrl = void 0; const getBackendApiUrl = (hostname) => hostname ? new URL(hostname.startsWith('http') ? hostname : `https://${hostname}`) .origin : 'https://backend.memori.ai'; exports.getBackendApiUrl = getBackendApiUrl; const getEngineApiUrl = (hostname) => hostname ? new URL(hostname.startsWith('http') ? hostname : `https://${hostname}`) .origin : 'https://engine.memori.ai'; exports.getEngineApiUrl = getEngineApiUrl; //# sourceMappingURL=getApiUrl.js.map