mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
@@ -80,9 +80,7 @@ func (m *Mock) GetRoute(ctx context.Context, appName, routePath string) (*models
|
||||
|
||||
func (m *Mock) GetRoutes(ctx context.Context, routeFilter *models.RouteFilter) (routes []*models.Route, err error) {
|
||||
for _, r := range m.Routes {
|
||||
if models.ApplyRouteFilter(r, routeFilter) {
|
||||
routes = append(routes, r)
|
||||
}
|
||||
routes = append(routes, r)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user