feat: add stop property to route for exclusive matching

This commit is contained in:
RhenCloud committed 2026-08-08 00:40:45 +08:00
1 parent cb18683fb8
commit feada32e83
9 files changed
+150 -114

No files matched your search

+3
View File
@@ -78,6 +78,9 @@ function validateRoutes(
if (r.fallback !== undefined && typeof r.fallback !== "boolean") {
return { ok: false, error: `route "${r.id}".fallback must be a boolean` };
}
if (r.stop !== undefined && typeof r.stop !== "boolean") {
return { ok: false, error: `route "${r.id}".stop must be a boolean` };
}
if (!Array.isArray(r.filters)) {
return { ok: false, error: `route "${r.id}".filters must be an array` };
}