feat: add stop property to route for exclusive matching

This commit is contained in:
RhenCloud 2026-08-08 00:40:45 +08:00
parent cb18683fb8
commit feada32e83
9 changed files with 150 additions and 114 deletions

View file

@ -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 {