Skip to content

Instantly share code, notes, and snippets.

@1Marc
Created November 25, 2015 18:55
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save 1Marc/640f0f1e7f73ee4cf0c1 to your computer and use it in GitHub Desktop.
Save 1Marc/640f0f1e7f73ee4cf0c1 to your computer and use it in GitHub Desktop.
Express 2 to Express 4.x
Express 2 was used in the course and the current version is 4.x.
you can't just use 'urlencoded' anymore, you have to:
npm install body-parser
and
var bodyParser = require('body-parser');
app.use(bodyParser.urlencoded({ extended: true }));
rather than
app.use(express.urlencoded());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment