Skip to content

Instantly share code, notes, and snippets.

@rudenoise
Last active March 19, 2020 14:53
Show Gist options
  • Save rudenoise/10dc9293fe3117fe42616748c9f228ed to your computer and use it in GitHub Desktop.
Save rudenoise/10dc9293fe3117fe42616748c9f228ed to your computer and use it in GitHub Desktop.
[
{
"token": "home",
"view": "path/to/home/view"
},
{
"token": "applicant",
"view": "path/to/contact/view",
"subSteps": [
{
"token": "a-sub-detail",
"view": "/path/to/sub-detail-view",
"comment": "this would combine tokens to form path e.g.: applicant/a-sub-detail"
}
]
},
{
"token": "decision",
"view": "path/to/decision/view",
"query": "postcodeLookUpEnabled",
"when": {
"yes": [
{
"token": "a-sub-detail",
"view": "/path/to/sub-detail-view"
}
],
"no": [
"path/to/another-map-file"
]
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment