Skip to content

Instantly share code, notes, and snippets.

@kadzany
Last active May 2, 2018 08:57
Show Gist options
  • Save kadzany/1ee45955053450fa3b29e0ab68d075ea to your computer and use it in GitHub Desktop.
Save kadzany/1ee45955053450fa3b29e0ab68d075ea to your computer and use it in GitHub Desktop.
Json for roles and menus data
{
"roles": ["managers", "operators", "admin"],
"menus" : [
{
"id": "1",
"name": "WM Menu",
"icon": "icon 1",
"routeLink": "",
"parentId": "0",
"roles": [],
"children": [{
"id": "2",
"name": "Inbound",
"icon": "icon 2",
"routerLink": "",
"parentId": "1",
"children": [
{
"id": "3",
"name": "ASN",
"icon": "icon 3",
"class": "class 3",
"routeLink": "/asn",
"parentId": "2",
"children": [
],
}
],
},
{
"id": "4",
"name": "Outbound",
"icon": "icon 3",
"routeLink": "",
"parentId": "1",
"children": [{
"id": "5",
"name": "Shipments",
"icon": "icon 3",
"routeLink": "/shipments",
"parentId": "4",
"children": [
],
}
],
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment