How do you mount a middleware with an Express application?
Bind application-level middleware to an instance of the app object by using the app.use() and app.Method() functions, where METHOD is the HTTP method of the request that the middleware function handles (such as GET, PUT, or POST) in lowercase.
Which objects does an Express application pass to your middleware to manage the request/response lifecycle of the server?
Request and respond object and next functional (optional)…