UPDATE: I’m not pursuing this any further, but if anyone has ideas I’d be interested in hearing how this is possible.
I have a use case where I need to match on a route that could be one of the following:
I’ve tried several different approaches that I would consider normal, but in looking at the code, I’m seeing that kong interprets routes that begin with the double slash as an empty regex. https://github.com/Kong/kong/blob/343925e4b1c05393dc6df53318b2ba0c8be4339a/kong/db/schema/typedefs.lua#L192
Is this possible?
Things I’ve tried that did not work:
- Adding one line for each route as it shows above