Router$add_path(path, match = c("exact", "partial", "regex"), id)
Arguments
path: Path to handle.
match: Defines how route will be processed. Allowed values:
* `exact` - match route as is. Returns 404 if route is not matched.
* `partial` - match route as prefix. Returns 404 if prefix are not matched.
* `regex` - match route as template. Returns 404 if template pattern not matched.
id: Path handler id.
Method match_path()
Find path within paths added before. Returns NULL if path not matched.