spring-cloud-gateway
spring-cloud-gateway copied to clipboard
Fixes gh-308: ability to turn off a route without removing
Hi!
I added enabled field in RouteDefinition to support disabling a route without removing it.
This change is backwards compatible as the default value of enabled field is true and getRoutes returns a filtered list of enabled routes.
Fixes https://github.com/spring-cloud/spring-cloud-gateway/issues/308
@spencergibb can someone plz review this PR
See 28a7da86ceda46590cf922040f6cc2c1b93c37c0 for changes I made. I moved the filtering out of RouteDefinition and into the PropertiesRouteDefinitionLocator