hasMatch method
Checks if any route matches the given method and path.
Implementation
bool hasMatch(String method, String path) {
final normalizedPath = _normalizePath(path);
// Check static routes first (fast)
if (_staticRoutes[method]?.containsKey(normalizedPath) ?? false) {
return true;
}
// Check dynamic routes
return _dynamicRoutes.any((route) => route.matches(method, path));
}