Last active
May 3, 2018 06:42
-
-
Save kadzany/878aa3da4546eb1c8530c78d88483a03 to your computer and use it in GitHub Desktop.
Json for routing data - example for admin user role
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"roles": ["admin", "outClerk", "inClerk", "whManager"], | |
"routes": [ | |
{ | |
"path": "roles", | |
"component": "RoleComponent" | |
}, | |
{ | |
"path": "roles/add", | |
"component": "EditRoleComponent" | |
}, | |
{ | |
"path": "roles/:id", | |
"component": "EditRoleComponent" | |
} | |
] | |
} |
yup, the file is updated to have multiple roles
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
{
path: 'roles',
data: { roles: ['admin', 'editor'] },
component: "RoleComponent"
}, {
path: 'roles/add',
data: { roles: ['admin', 'editor'] },
component: "EditRoleComponent"
},
{
path: 'roles/:id',
data: { roles: ['admin'] },
component: "EditRoleComponent"
},