added GetBlockchain in REST API of the serverCA, also added the visualization to the serverCA webapp

This commit is contained in:
arnaucode
2017-11-26 15:27:36 +01:00
parent f56763d48e
commit 06b34d74b8
8 changed files with 199 additions and 13 deletions

View File

@@ -19,4 +19,14 @@ angular.module('app.main', ['ngRoute'])
}, function(data, status, headers, config) {
console.log('data error');
});
$scope.blockchain={};
$http.get(urlapi + 'blockchain')
.then(function(data, status, headers, config) {
console.log('data success');
console.log(data.data);
$scope.blockchain = data.data;
}, function(data, status, headers, config) {
console.log('data error');
});
});