From deffdeb67ac8987186c048c41f2774a42213d5d2 Mon Sep 17 00:00:00 2001 From: Ivan Socolsky Date: Thu, 18 Aug 2016 13:16:44 -0300 Subject: [PATCH] fix 404 on POST v1/txproposals --- lib/expressapp.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/expressapp.js b/lib/expressapp.js index c7336ff..d955af4 100644 --- a/lib/expressapp.js +++ b/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) { getServerWithAuth(req, res, function(server) { server.createTx(req.body, function(err, txp) {