mirror of
https://github.com/ReCloudStudio/WebHooker.git
synced 2026-09-22 16:11:29 +00:00
feat: add stop property to route for exclusive matching
This commit is contained in:
parent
cb18683fb8
commit
feada32e83
9 changed files with 150 additions and 114 deletions
|
|
@ -58,6 +58,12 @@ export interface Route {
|
|||
* least one regular route matches. Its own filters are ignored.
|
||||
*/
|
||||
fallback?: boolean;
|
||||
/**
|
||||
* Stop: when true and this route matches, no further routes are evaluated
|
||||
* for this event. Useful for exclusive routing where a match should prevent
|
||||
* fallthrough to subsequent routes.
|
||||
*/
|
||||
stop?: boolean;
|
||||
}
|
||||
|
||||
export interface Group {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue