aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+admin/overview/users/users.routes.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/+admin/overview/users/users.routes.ts')
-rw-r--r--client/src/app/+admin/overview/users/users.routes.ts49
1 files changed, 49 insertions, 0 deletions
diff --git a/client/src/app/+admin/overview/users/users.routes.ts b/client/src/app/+admin/overview/users/users.routes.ts
new file mode 100644
index 000000000..8b63f5bc7
--- /dev/null
+++ b/client/src/app/+admin/overview/users/users.routes.ts
@@ -0,0 +1,49 @@
1import { Routes } from '@angular/router'
2import { UserRightGuard } from '@app/core'
3import { UserRight } from '@shared/models'
4import { UserCreateComponent, UserUpdateComponent } from './user-edit'
5import { UserListComponent } from './user-list'
6
7export const UsersRoutes: Routes = [
8 {
9 path: 'users',
10 canActivate: [ UserRightGuard ],
11 data: {
12 userRight: UserRight.MANAGE_USERS
13 },
14 children: [
15 {
16 path: '',
17 redirectTo: 'list',
18 pathMatch: 'full'
19 },
20 {
21 path: 'list',
22 component: UserListComponent,
23 data: {
24 meta: {
25 title: $localize`Users list`
26 }
27 }
28 },
29 {
30 path: 'create',
31 component: UserCreateComponent,
32 data: {
33 meta: {
34 title: $localize`Create a user`
35 }
36 }
37 },
38 {
39 path: 'update/:id',
40 component: UserUpdateComponent,
41 data: {
42 meta: {
43 title: $localize`Update a user`
44 }
45 }
46 }
47 ]
48 }
49]