]>
Commit | Line | Data |
---|---|---|
5cd80545 C |
1 | import { Routes } from '@angular/router' |
2 | ||
3 | import { UserRightGuard } from '../../core' | |
4 | import { FollowingAddComponent } from './following-add' | |
5 | import { UserRight } from '../../../../../shared' | |
6 | import { FollowingListComponent } from './following-list/following-list.component' | |
7 | import { JobsComponent } from './job.component' | |
8 | import { JobsListComponent } from './jobs-list/jobs-list.component' | |
9 | ||
10 | export const JobsRoutes: Routes = [ | |
11 | { | |
12 | path: 'jobs', | |
13 | component: JobsComponent, | |
14 | canActivate: [ UserRightGuard ], | |
15 | data: { | |
16 | userRight: UserRight.MANAGE_JOBS | |
17 | }, | |
18 | children: [ | |
19 | { | |
20 | path: '', | |
21 | redirectTo: 'list', | |
22 | pathMatch: 'full' | |
23 | }, | |
24 | { | |
25 | path: 'list', | |
26 | component: JobsListComponent, | |
27 | data: { | |
28 | meta: { | |
29 | title: 'Jobs list' | |
30 | } | |
31 | } | |
32 | } | |
33 | ] | |
34 | } | |
35 | ] |