alfresco-js-api
Version:
JavaScript client library for the Alfresco REST API
35 lines (25 loc) • 685 B
JavaScript
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-/public/alfresco/versions/1';
}
/**
* set the Authentications
*
* @param {Object} authentications
* */
setAuthentications(authentications) {
this.authentications = authentications;
}
}
module.exports = EcmClient;
;