Update app-param.md

Typo in spelling of "parameters"
This commit is contained in:
allenhartwig
2015-02-23 06:47:51 -08:00
parent 6880daee4d
commit aa16a06bc1

View File

@@ -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.