Calculate implicit priority from route match patterns Used when explicit priority is not set
Priority is calculated based on:
Route to analyze
Calculated priority (0-100, lower = higher priority)
calculateRoutePriority({ match: [{ path: ["/health"] }] }) // Returns ~0 (health check)calculateRoutePriority({ match: [{ path: ["/api/*"] }] }) // Returns ~30 (specific path)calculateRoutePriority({ match: [{ path: ["/*"] }] }) // Returns ~90 (wildcard) Copy
calculateRoutePriority({ match: [{ path: ["/health"] }] }) // Returns ~0 (health check)calculateRoutePriority({ match: [{ path: ["/api/*"] }] }) // Returns ~30 (specific path)calculateRoutePriority({ match: [{ path: ["/*"] }] }) // Returns ~90 (wildcard)
Calculate implicit priority from route match patterns Used when explicit priority is not set
Priority is calculated based on: