Generation

generate functionMon, 14 Nov 2022

nodejs express post method log body content

//const express = require('express') //const app = express() // let bodyParser = require('body-parser') // let cors = require('cors') // app.use(bodyParser.json()) // app.use(cors()) // app.post('/', function(req, res) { // console.log(req.body) // res.send('ok') // }) // app.listen(3000)

Javascript
Generate More

Questions about programming?Chat with your personal AI assistant