Sunday, 9 February 2020

How to catch the request body of POST in express.js?

I tried to catch it in `req.body`. I did one POST in the browser to the corresponding route with the following request body: `[1,2,3]`. In the console I saw it printed as `{}`. So maybe that's not the variable I'm looking for?

Submitted February 09, 2020 at 03:19PM by Snorlax_Sim

No comments:

Post a Comment