Use AXIos to post data to NodeJS.

Install the body – the parser

const app = express()

// parse application/x-www-form-urlencoded
app.use(bodyParser.urlencoded({ extended: false }))

// parse application/json
app.use(bodyParser.json())
Copy the code

Then use res.body to get the data