|
@ -266,6 +266,16 @@ ExpressApp.prototype.start = function(opts, cb) { |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
router.get('/v1/feelevels/', function(req, res) { |
|
|
|
|
|
var opts = {}; |
|
|
|
|
|
if (req.query.network) opts.network = req.query.network; |
|
|
|
|
|
var server = getServer(req, res); |
|
|
|
|
|
server.getFeeLevels(opts, function(err, feeLevels) { |
|
|
|
|
|
if (err) return returnError(err, res, req); |
|
|
|
|
|
res.json(feeLevels); |
|
|
|
|
|
}); |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
router.post('/v1/txproposals/:id/signatures/', function(req, res) { |
|
|
router.post('/v1/txproposals/:id/signatures/', function(req, res) { |
|
|
getServerWithAuth(req, res, function(server) { |
|
|
getServerWithAuth(req, res, function(server) { |
|
|
req.body.txProposalId = req.params['id']; |
|
|
req.body.txProposalId = req.params['id']; |
|
|