|
|
@ -280,7 +280,19 @@ ExpressApp.prototype.start = function(opts, cb) { |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
// DEPRECATED
|
|
|
|
router.post('/v2/addresses/', function(req, res) { |
|
|
|
getServerWithAuth(req, res, function(server) { |
|
|
|
server.createAddress({ |
|
|
|
ignoreMaxGap: true |
|
|
|
}, function(err, address) { |
|
|
|
if (err) return returnError(err, res, req); |
|
|
|
res.json(address); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
router.post('/v3/addresses/', function(req, res) { |
|
|
|
getServerWithAuth(req, res, function(server) { |
|
|
|
server.createAddress(req.body, function(err, address) { |
|
|
|
if (err) return returnError(err, res, req); |
|
|
|