UNPKG

projex

Version:
15 lines (14 loc) 734 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.VTEX_CMS_DEFAULT_SITE = exports.Endpoints = void 0; const UPLOAD_FILE = (account, file, site) => `https://${account}.myvtex.com/api/portal/pvt/sites/${site}/files/${file}`; const GET_DIRECTORY_FILES = (account, site) => `https://${account}.myvtex.com/api/portal/pvt/sites/${site}/files`; const GET_CONTENT_FILES = (account, file) => `https://${account}.myvtex.com/files/${file}`; const VTEX_GET_TOKEN = (account) => `http://api.vtexcommercestable.com.br/api/vtexid/apptoken/login?an=${account}`; exports.Endpoints = { UPLOAD_FILE, GET_CONTENT_FILES, GET_DIRECTORY_FILES, VTEX_GET_TOKEN, }; exports.VTEX_CMS_DEFAULT_SITE = 'default';