[ Version ( since = "0.3" ) ]
public class RuleRoute : RegexRoute
Route based on the rule system.
The rule pattern is composed of a few elements:
- '<' '>' for parameters
- '(' and ')' for group
- '?' for optional
- '*' for wildcard
The content of a parameters is a name with an optional type such as '<type:name>'. Types are resolved in a provided mapping and names are pushed on the routing Valum.Context.
A group allow a more fine-grained application for optional parts.
The optional symbol makes the last character or group optional. If it contains parameters, they will not be pushed on the context.
The wildcard stands for the '.*' regular expression, which match pretty much anything.