UNPKG

alfresco-js-api

Version:

JavaScript client library for the Alfresco REST API

35 lines (25 loc) 686 B
'use strict'; var AlfrescoApiClient = require('./alfrescoApiClient'); class EcmClient extends AlfrescoApiClient { /** * @param {Object} config */ constructor(config) { super(); this.config = config; this.changeHost(); } changeHost() { this.host = this.config.hostEcm; this.basePath = this.config.hostEcm + '/' + this.config.contextRoot + '/api/-default-/private/alfresco/versions/1'; } /** * set the Authentications * * @param {Object} authentications * */ setAuthentications(authentications) { this.authentications = authentications; } } module.exports = EcmClient;