This question talks about chaining requests but it is using mocha
.
How can I chain superagent
requests (calling another rest API in the end method) without using Mocha
or it
?
When I do the chaining
superagent.post( URL ).send( DATA ).end( function(err,res){
console.log("1");
superagent.post( URL1 ).send( DATA1 ).end( function(err,res){
console.log("2");
});
});
Neither of the console.log is seen on the console.