Skip to content

How to deny routes using patterns in version 23.2.2? #2062

Answered by raman-m
amorelIM asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Alexis!
Welcome to Ocelot world! 🐯

In version 23.2.2 there is the empty placeholder feature that was added, and I think it breaks the configuration we added.

We apologize, but this feature will be a permanent part of Ocelot. You need to adapt/redefine your routes.

Now, the last two items in the configuration comes into conflict. Depending on the order in the list, either all routes under /Products/{id} are exposed or none of them.

The solution involves using the Routing Priority feature to assign the highest priority to the last "/unknown" route. The remaining routes should be assigned a lower priority and can be consolidated into a single Catch All route.

The solution

{
  "Upstrea…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@amorelIM
Comment options

@raman-m
Comment options

@amorelIM
Comment options

Answer selected by amorelIM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Routing Ocelot feature: Routing
2 participants