Skip to content

Instantly share code, notes, and snippets.

@kadzany
Created May 3, 2018 06:42
Show Gist options
  • Save kadzany/7bc3eee146f765e1ddf285df7e4ed380 to your computer and use it in GitHub Desktop.
Save kadzany/7bc3eee146f765e1ddf285df7e4ed380 to your computer and use it in GitHub Desktop.
Roles and menus JSON data using flat structure
{
"roles": ["managers", "operators", "admin"],
"menus" : [
{
"id": "1",
"name": "WM Menu",
"icon": "icon 1",
"routeLink": "",
"parentId": null
},
{
"id": "2",
"name": "Inbound",
"icon": "icon 2",
"routerLink": "",
"parentId": "1"
},
{
"id": "3",
"name": "ASN",
"icon": "icon 3",
"class": "class 3",
"routeLink": "/asn",
"parentId": "2"
},
{
"id": "4",
"name": "Outbound",
"icon": "icon 3",
"routeLink": "",
"parentId": "1"
},
{
"id": "5",
"name": "Shipments",
"icon": "icon 3",
"routeLink": "/shipments",
"parentId": "4"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment