|
|
@ -263,6 +263,17 @@ ExpressApp.start = function(opts) { |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
router.get('/v1/txhistory/', function(req, res) { |
|
|
|
getServerWithAuth(req, res, function(server) { |
|
|
|
server.getTxHistory({}, function(err, txs) { |
|
|
|
if (err) return returnError(err, res, req); |
|
|
|
res.json(txs); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// TODO: DEBUG only!
|
|
|
|
router.get('/v1/dump', function(req, res) { |
|
|
|
var server = WalletService.getInstance(); |
|
|
|