1var bodyParser = require('body-parser');
2var multer = require('multer');
3var forms = multer();
4
5// apply them
6
7app.use(bodyParser.json());
8app.use(forms.array());
9app.use(bodyParser.urlencoded({ extended: true }));
10
11// how to use
12
13router.post('/', function(req, res) {
14 console.log(req.body);
15 console.log('received the widget request');
16});
17
1const express = require('express')
2const app = express()
3
4app.use(express.urlencoded())
5