Answers for "express req get json"

0

express req get json

const express = require('express');
const app = express();

app.use(express.json());

app.post('*', (req, res) => {
  req.body;	// The json object sent to the server
});
const port = 3000;
app.listen(port, () => console.log(`Listening on port ${port}.`));
Posted by: Guest on August-26-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language