client: fix wallet admin calls. see #185.

This commit is contained in:
Christopher Jeffrey 2017-05-12 11:42:28 -07:00
parent 27b896a4ed
commit c81d57c25c
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -386,7 +386,7 @@ HTTPClient.prototype.broadcast = function broadcast(tx) {
HTTPClient.prototype.rescan = function rescan(height) {
var options = { height: height };
return this._post('/_admin/rescan', options);
return this._post('/wallet/_admin/rescan', options);
};
/**
@ -406,7 +406,7 @@ HTTPClient.prototype.reset = function reset(height) {
*/
HTTPClient.prototype.resend = function resend() {
return this._post('/_admin/resend', {});
return this._post('/wallet/_admin/resend', {});
};
/**
@ -417,7 +417,7 @@ HTTPClient.prototype.resend = function resend() {
HTTPClient.prototype.backup = function backup(path) {
var options = { path: path };
return this._post('/_admin/backup', options);
return this._post('/wallet/_admin/backup', options);
};
/**
@ -482,7 +482,7 @@ HTTPClient.prototype.none = function none() {
*/
HTTPClient.prototype.getWallets = function getWallets() {
return this._get('/wallets');
return this._get('/wallet/_admin/wallets');
};
/**