var bodyParser = require('body-parser')
var app = express()
// parse application/x-www-form-urlencoded
app.use(bodyParser.urlencoded({ extended: false }))
// parse application/json
app.use(bodyParser.json())
//express doesn't by default support json data input so use express.json() middleware
const app= express();
app.use(express.json());