mirror of
https://github.com/expressjs/expressjs.com.git
synced 2026-02-22 03:51:33 +00:00
Update app-param.md
Typo in spelling of "parameters"
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<h3 id='app.param'>app.param([name], callback)</h3>
|
||||
|
||||
Add callback triggers to route paramters, where `name` is the name of the parameter or an array of them, and `function` is the callback function. The parameters of the callback function are the request object, the response object, the next middleware, and the value of the parameter, in that order.
|
||||
Add callback triggers to route parameters, where `name` is the name of the parameter or an array of them, and `function` is the callback function. The parameters of the callback function are the request object, the response object, the next middleware, and the value of the parameter, in that order.
|
||||
|
||||
For example, when `:user` is present in a route path, you may map user loading logic to automatically provide `req.user` to the route, or perform validations on the parameter input.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user