Browse Source

add REST endpoint

activeAddress
Ivan Socolsky 9 years ago
parent
commit
7a91d3f652
No known key found for this signature in database GPG Key ID: FAECE6A05FAA4F56
  1. 10
      lib/expressapp.js

10
lib/expressapp.js

@ -514,6 +514,16 @@ ExpressApp.prototype.start = function(opts, cb) {
});
});
router.put('/v1/txnotes/:txid/', function(req, res) {
req.body.txid = req.params['txid'];
getServerWithAuth(req, res, function(server) {
server.editTxNote(req.body, function(err) {
if (err) return returnError(err, res, req);
res.end();
});
});
});
router.get('/v1/fiatrates/:code/', function(req, res) {
getServerWithAuth(req, res, function(server) {
var opts = {

Loading…
Cancel
Save