UNPKG

@qelos/auth

Version:

Express Passport authentication service

17 lines (16 loc) 618 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.callContentService = void 0; const config_1 = require("../../config"); const api_kit_1 = require("@qelos/api-kit"); const contentService = (0, api_kit_1.service)('CONTENT', { port: process.env.CONTENT_SERVICE_PORT || 9001 }); function callContentService(url, tenant, data) { return contentService({ headers: { internal_secret: config_1.internalServicesSecret, tenant }, method: 'GET', data, url }) .then((axiosRes) => axiosRes.data); } exports.callContentService = callContentService;