Browse Source

fix 404 on POST v1/txproposals

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

6
lib/expressapp.js

@ -289,6 +289,12 @@ ExpressApp.prototype.start = function(opts, cb) {
}); });
}); });
router.post('/v1/txproposals/', function(req, res) {
var Errors = require('./errors/errordefinitions');
var err = Errors.UPGRADE_NEEDED;
return returnError(err, res, req);
});
router.post('/v2/txproposals/', function(req, res) { router.post('/v2/txproposals/', function(req, res) {
getServerWithAuth(req, res, function(server) { getServerWithAuth(req, res, function(server) {
server.createTx(req.body, function(err, txp) { server.createTx(req.body, function(err, txp) {

Loading…
Cancel
Save