add auth in demo

This commit is contained in:
Eugenio Romano
2016-08-04 01:29:26 +01:00
parent 0050a2cc13
commit efa39eefe8
4 changed files with 88 additions and 6 deletions

View File

@@ -77,6 +77,11 @@ export class ViewerComponent {
this.extension = this.getFileExtension(filenameFromUrl);
} else if (this.fileNodeId) {
console.log('call api');
this.authService.getAlfrescoApi().getNodeInfo(this.fileNodeId).then(function (data) {
console.log('This is the name' + JSON.stringify(data) );
}, function (error) {
console.log('This node does not exist');
});
}