1 import { Routes } from '@angular/router'
3 import { UserRightGuard } from '../../core'
4 import { UserRight } from '../../../../../shared'
5 import { UsersComponent } from './users.component'
6 import { UserCreateComponent, UserUpdateComponent } from './user-edit'
7 import { UserListComponent } from './user-list'
9 export const UsersRoutes: Routes = [
12 component: UsersComponent,
13 canActivate: [ UserRightGuard ],
15 userRight: UserRight.MANAGE_USERS
25 component: UserListComponent,
34 component: UserCreateComponent,
37 title: 'Create a user'
43 component: UserUpdateComponent,
46 title: 'Update a user'