Skip to content

Instantly share code, notes, and snippets.

@ChazAttack73
Forked from sgnl/fix.md
Created January 15, 2016 01:15
Show Gist options
  • Save ChazAttack73/7f464fd34ed4c6b70a97 to your computer and use it in GitHub Desktop.
Save ChazAttack73/7f464fd34ed4c6b70a97 to your computer and use it in GitHub Desktop.
Fixing "All my values are strings"

in server.js file

server.use(bodyParser.urlencoded({ extended: true})); // remove this line
server.use(bodyParser.json({ type: 'application/json' })); //replace with this line

in Postman:

image

Notice the "JSON (application/json)" setting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment