redfin/react-server

How do I access body on the req object

hollinwilkins opened this issue · 1 comments

I am writing server-side code that communicates with a gRPC server. I need access the the post params of the request. My function looks something like this:

export function doTheThing(req, res) {
  // How do I access the request body here?
}

I'm not sure how to access the POST parameters from within the server-side handler. Please help me out.

Thank you

Nevermind, I see that the server object being passed is an express server and I need to use a plugin like bodyParser now.