I have the following configuration:
gateway:
discovery:
locator:
enabled: true
predicates:
- name: Path
args:
pattern: "'/api/'+serviceId.toLowerCase()+'/**'"
filters:
- name: RewritePath
args:
regexp: "'/api/' + serviceId.toLowerCase() + '/(?<remaining>.*)'"
replacement: "'/${remaining}'"
If I send request with ...api/serviceName/ - OK
But if I send a request with ...api/serviceName - it returns 404 NOT FOUND
How can I change the properties so I can use the URL without the slash at the end?
Thanks!