Map the given param placeholder name(s) to the given callback(s).
Parameter mapping is used to provide pre-conditions to routes
which use normalized placeholders. For example a :user_id parameter
could automatically load a user's information from the database without
any additional code,
The callback uses the samesignature as middleware, the only differencing
being that the value of the placeholder is passed, in this case the id
of the user. Once the next() function is invoked, just like middleware
it will continue on to execute the route, or subsequent parameter functions.
Map the given param placeholder
name
(s) to the given callback(s).Parameter mapping is used to provide pre-conditions to routes which use normalized placeholders. For example a :user_id parameter could automatically load a user's information from the database without any additional code,
The callback uses the samesignature as middleware, the only differencing being that the value of the placeholder is passed, in this case the id of the user. Once the
next()
function is invoked, just like middleware it will continue on to execute the route, or subsequent parameter functions.