John Cowen 268f930de4 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:07:02 +00:00

20 lines
402 B
Plaintext

[
{
"ID":"${ location.pathname.get(3) }",
"Name":"${ location.pathname.get(3) } Token",
"Type":"${fake.helpers.randomize(['client', 'management'])}",
"Rules":${
JSON.stringify(
`agent "${fake.hacker.noun()}" {
policy = "write"
}
node "node-0" {
policy = "read"
}`
)
},
"CreateIndex":4,
"ModifyIndex":4
}
]