client: fix wallet admin calls. see #185.
This commit is contained in:
parent
27b896a4ed
commit
c81d57c25c
@ -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');
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user