-
Hi, I have a controller with some routes running in my ocelot project. I want these routes like I tried add the endpoints with the same downstream/upstream paths and some manual handlers, but without success. Any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
@techaum I think you need to use MapWhen to skip the Ocelot pipeline. You should be able to hardcode whatever routes you dont want to run in Ocleot. Docs are here |
Beta Was this translation helpful? Give feedback.
-
Exactly that, works like a charm! Thanks sir! |
Beta Was this translation helpful? Give feedback.
-
no problem :) |
Beta Was this translation helpful? Give feedback.
-
Could you post the code that you've used to do that ? I can't really seem to find the way @techaum @TomPallister |
Beta Was this translation helpful? Give feedback.
-
FWIW, if you wanted to you can do something like this:
That way everything that's sent to |
Beta Was this translation helpful? Give feedback.
FWIW, if you wanted to you can do something like this:
That way everything that's sent to
/account
will be sent to to authentication thingie ofMapIdentityApi
and everything else will be handled by Ocelot.