|
|
@ -314,6 +314,7 @@ ExpressApp.prototype.start = function(opts, cb) { |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
// DEPRECATED
|
|
|
|
router.get('/v1/balance/', function(req, res) { |
|
|
|
getServerWithAuth(req, res, function(server) { |
|
|
|
server.getBalance({}, function(err, balance) { |
|
|
@ -323,6 +324,15 @@ ExpressApp.prototype.start = function(opts, cb) { |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
router.get('/v2/balance/', function(req, res) { |
|
|
|
getServerWithAuth(req, res, function(server) { |
|
|
|
server.getBalance2Steps({}, function(err, balance) { |
|
|
|
if (err) return returnError(err, res, req); |
|
|
|
res.json(balance); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
// DEPRECATED
|
|
|
|
router.get('/v1/feelevels/', function(req, res) { |
|
|
|
var opts = {}; |
|
|
|