I am trying to get data sent by postman row->text data but fail to get.
I am able to print complete body but how do i print body param?
body is in the form of query string.
NodeCode:
const bodyParser = require("body-parser");
app.use(bodyParser.urlencoded({
extended: true
}));
app.use(bodyParser.json());
app.use(bodyParser.text());
app.post('/data/UploadLogsToServer', async (req, res) => {
return res.json(req.body);
});
above code prints complete body like
But How do i fetch only Store parameter from query string ?