Only functions are supported for [VERB](path, fn), use(path, fn) and all(fn) calls in Router and Routes. This catches those errors earlier to avoid checks during actual request processing.
note that application/json no longer adds charset=utf-8. could be a regression. closes #1952 See also: broofa/node-mime#86
some more errors but whatever
no middleware uses the “header” event anymore
Properly handle calling a VERB after using .all() close #1945
Fixed deprecated example doctype
Similar to how express() returns an express `app` instance which is also a function, express.Router() returns the Router instance which is also a function and can be easily used via another router or the app. app.use(express.Router());
Router: add parameter handling to middleware
Middleware (.use) can now specify parameter arguments to trigger Router.param loading. This is handy if you want to `.use` additional routers but need to load certain objects before the mounted middleware runs.