- if !matchesFilter(api, params) {
- continue
- }
- profiles := *api.AefProfiles
- for i, profile := range profiles {
- profile.DomainName = &gatewayDomain // Hardcoded for now. Should be provided through some other mechanism.
- profiles[i] = profile
+ if matchesFilter(api, params) {
+ filteredApis = append(filteredApis, api)