Skip to content

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 ​

Request

Returns ​

boolean | null | undefined | void