open-consul/ui/packages/consul-ui/mock-api/v1/discovery-chain/.config
John Cowen 5875e4b15b
ui: Move mocks into the ui project (#9084)
* Add consul-api-double under api

* Update config to reflect api change

* Remove consul-api-double as a dependency

* api -> mock-api

* Fixup mocks path for staging
2020-11-05 16:03:49 +00:00

10 lines
232 B
Plaintext

---
"*":
GET:
"*":
latency: ${ location.search.index ? env('CONSUL_LATENCY', 60000) : env('CONSUL_LATENCY', 0) }
headers:
response:
X-Consul-Index: ${ parseInt((location.search.index || 1)) + 1}