fix 404 on POST v1/txproposals
This commit is contained in:
parent
8ca0ac714d
commit
deffdeb67a
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue