Skip to content

Instantly share code, notes, and snippets.

@pandafulmanda
Last active December 12, 2018 01:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pandafulmanda/b98368fce8cc37051ecfa268a99db1cd to your computer and use it in GitHub Desktop.
Save pandafulmanda/b98368fce8cc37051ecfa268a99db1cd to your computer and use it in GitHub Desktop.
Quick express body-parser vs built in json middleware example
const express = require('express')
const app = express()
app.use(express.json())
app.listen(3000, function () {
console.log('Server running')
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment