i have a function which under some conditions redirects using
return res.redirect('/logout');
i handle the above redirect using
app.route('/logout').post(users.signout);
but the problem is that res.redirect is using a get call and not a post call. enter image description here
I do know i can just handle it as a get call but is there anyway to make it so that res.redirect raises a post call?