fix 404 on POST v1/txproposals

This commit is contained in:
Ivan Socolsky 2016-08-18 13:16:44 -03:00
parent 8ca0ac714d
commit deffdeb67a
No known key found for this signature in database
GPG Key ID: FAECE6A05FAA4F56
1 changed files with 6 additions and 0 deletions

View File

@ -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) {
getServerWithAuth(req, res, function(server) {
server.createTx(req.body, function(err, txp) {