|
|
@ -144,7 +144,6 @@ ExpressApp.prototype.start = function(opts, cb) { |
|
|
|
|
|
|
|
router.post('/v2/wallets/', function(req, res) { |
|
|
|
var server = getServer(req, res); |
|
|
|
req.body.supportBIP44AndP2PKH = true; |
|
|
|
server.createWallet(req.body, function(err, walletId) { |
|
|
|
if (err) return returnError(err, res, req); |
|
|
|
res.json({ |
|
|
@ -165,6 +164,7 @@ ExpressApp.prototype.start = function(opts, cb) { |
|
|
|
// DEPRECATED
|
|
|
|
router.post('/v1/wallets/:id/copayers/', function(req, res) { |
|
|
|
req.body.walletId = req.params['id']; |
|
|
|
req.body.supportBIP44AndP2PKH = false; |
|
|
|
var server = getServer(req, res); |
|
|
|
server.joinWallet(req.body, function(err, result) { |
|
|
|
if (err) return returnError(err, res, req); |
|
|
@ -175,7 +175,6 @@ ExpressApp.prototype.start = function(opts, cb) { |
|
|
|
|
|
|
|
router.post('/v2/wallets/:id/copayers/', function(req, res) { |
|
|
|
req.body.walletId = req.params['id']; |
|
|
|
req.body.supportBIP44AndP2PKH = true; |
|
|
|
var server = getServer(req, res); |
|
|
|
server.joinWallet(req.body, function(err, result) { |
|
|
|
if (err) return returnError(err, res, req); |
|
|
|