fix(route): remove x-properties routes during loading

This commit is contained in:
yusing
2025-06-07 22:28:44 +08:00
parent a90d2b90d1
commit cfe0f6bb70
3 changed files with 22 additions and 3 deletions

View File

@@ -433,8 +433,7 @@ func (r *Route) ShouldExclude() bool {
} else if r.IsZeroPort() && r.Scheme != route.SchemeFileServer {
return true
}
if strings.HasPrefix(r.Alias, "x-") ||
strings.HasSuffix(r.Alias, "-old") {
if strings.HasSuffix(r.Alias, "-old") {
return true
}
return false