metadata/resource.go
func (r *Resource) findMatches(href string) []*PathPattern {
	var matches []*PathPattern
	for _, action := range r.Actions {
		for _, pattern := range action.PathPatterns {
			if pattern.Regexp.MatchString(href) || pattern.Regexp.MatchString(href+"/") {
				matches = append(matches, pattern)
			}
		}
	}
	return matches
}
func (r *Resource) findMatches(href string) []*PathPattern {
	var matches []*PathPattern
	for _, action := range r.Actions {
		for _, pattern := range action.PathPatterns {
			if pattern.Regexp.MatchString(href) || pattern.Regexp.MatchString(href+"/") {
				matches = append(matches, pattern)
			}
		}
	}
	return matches
}
// Find paths that match given href