Im trying to just stop the post request after I\'ve saved a document to the DB, ie:
app.post(\'/blah\'), function(req,res){
//my code does a bunch of stuff
The best way to end the express routing without routing to new page or what ever the mess express want you not to stay on the current page although you have your own reason is to use window.stop, for example a form, you use javascript to handle the submission, the timeout should be enough to ensure the data is send as POST method.
document.myform.mysubmit.click()
setTimeout(function(){
window.stop()
}, 3000);