by
Lessons:14Length:1.1 hours
  • Overview
  • Transcript

1.5 The Verb Methods

The core methods for responding to requests in Express are through what the documentation calls the verb methods. These are the methods get, post, put, and delete, for the different HTTP request types. We’ll look at those in this lesson.

Notes

body-parser now requires that the extended option be explicitly specified, otherwise a deprecation warning will be thrown. The correct syntax in this case is

app.use(bodyParser.urlencoded({extended:true}));