-
Hi, I know it is simple to add an endpoint to our service where we dont have to leverage the YARP middleware. However, I am curious, can we use the YARP configuration to simply terminate a request without proxying it to another service, and return a 200? A use case I am thinking is to be able to dynamically update the config with such an option, without having to explicitly add a new endpoint in code. So we could leverage whatever middleware has been loaded, without having to forward the request anywhere. I hope that makes sense. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
That makes sense but is not currently supported by default. Here are a few ways you can go about it:
|
Beta Was this translation helpful? Give feedback.
That makes sense but is not currently supported by default. Here are a few ways you can go about it: