spring-cloud-gateway icon indicating copy to clipboard operation
spring-cloud-gateway copied to clipboard

Fixes gh-308: ability to turn off a route without removing

Open usrivastava92 opened this issue 2 years ago • 1 comments

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

usrivastava92 avatar Aug 11 '23 15:08 usrivastava92

@spencergibb can someone plz review this PR

usrivastava92 avatar Oct 11 '23 07:10 usrivastava92

See 28a7da86ceda46590cf922040f6cc2c1b93c37c0 for changes I made. I moved the filtering out of RouteDefinition and into the PropertiesRouteDefinitionLocator

spencergibb avatar Sep 27 '24 17:09 spencergibb