Add receiver-ui-annotation-fake route to yarp.json
Added a new route configuration `receiver-ui-annotation-fake` to the `yarp.json` file. This route is associated with the `receiver-ui` cluster, has an `Order` value of `10`, and matches requests to `/api/Annotation/{envelopeKey}` with `GET` and `HEAD` methods. A path transformation rewrites the route to `/fake-data/annotations.json`.
This commit is contained in:
@@ -41,6 +41,17 @@
|
|||||||
"Methods": [ "GET", "HEAD" ]
|
"Methods": [ "GET", "HEAD" ]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"receiver-ui-annotation-fake": {
|
||||||
|
"ClusterId": "receiver-ui",
|
||||||
|
"Order": 10,
|
||||||
|
"Match": {
|
||||||
|
"Path": "/api/Annotation/{envelopeKey}",
|
||||||
|
"Methods": [ "GET", "HEAD" ]
|
||||||
|
},
|
||||||
|
"Transforms": [
|
||||||
|
{ "PathSet": "/fake-data/annotations.json" }
|
||||||
|
]
|
||||||
|
},
|
||||||
"auth-login": {
|
"auth-login": {
|
||||||
"ClusterId": "auth-hub",
|
"ClusterId": "auth-hub",
|
||||||
"Match": {
|
"Match": {
|
||||||
|
|||||||
Reference in New Issue
Block a user