crelte / routing / UpdateRequest
Type Alias: UpdateRequest()
ts
type UpdateRequest = (req) => boolean | null | undefined | void;Allows to easely modify a Request
If you return false the request will be aborted
Example
js
router.replace(req => (req.hash = ''));Parameters
req
Returns
boolean | null | undefined | void