Configuration
whereMatch()
Signature
Section titled “Signature”whereMatch() — returns struct
Available in: mapper
Category: Routing
Description
Section titled “Description”Constrain a route variable with a custom regex pattern.
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
variableName | string | yes | — | The route variable name to constrain. |
pattern | string | yes | — | The regex pattern the variable must match. |