-
-
Save janily/0da7164643e3560fb82e41ad774b2a7e to your computer and use it in GitHub Desktop.
Express 2 to Express 4.x
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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