|
@@ -23,9 +23,15 @@ public class GatewayRoutes implements Serializable {
|
|
|
|
|
|
|
|
public List<PredicateDefinition> getPredicateDefinition() {
|
|
public List<PredicateDefinition> getPredicateDefinition() {
|
|
|
if (this.predicates != null) {
|
|
if (this.predicates != null) {
|
|
|
|
|
+ String predicates;
|
|
|
|
|
+ if (!this.predicates.contains("/**")) {
|
|
|
|
|
+ predicates = this.predicates + "/**";
|
|
|
|
|
+ } else {
|
|
|
|
|
+ predicates = this.predicates;
|
|
|
|
|
+ }
|
|
|
PredicateDefinition predicateDefinition = new PredicateDefinition();
|
|
PredicateDefinition predicateDefinition = new PredicateDefinition();
|
|
|
predicateDefinition.setName("Path");
|
|
predicateDefinition.setName("Path");
|
|
|
- predicateDefinition.addArg("_genkey_0", this.predicates);
|
|
|
|
|
|
|
+ predicateDefinition.addArg("_genkey_0", predicates);
|
|
|
List<PredicateDefinition> predicateDefinitionList = new ArrayList<>();
|
|
List<PredicateDefinition> predicateDefinitionList = new ArrayList<>();
|
|
|
predicateDefinitionList.add(predicateDefinition);
|
|
predicateDefinitionList.add(predicateDefinition);
|
|
|
return predicateDefinitionList;
|
|
return predicateDefinitionList;
|