I am trying to get query parameters through a POST request and it doesn't seem to receive them.
app.use(bodyParser.urlencoded({ extended: false }));
app.post('/pubs/:id/submit', function (req, res, next) {
console.log("query: " + JSON.stringify(req.query)) //prints {}
I have tried sending the request through Postman and curl and the request is properly formed.