aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+admin/jobs/job.routes.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/+admin/jobs/job.routes.ts')
-rw-r--r--client/src/app/+admin/jobs/job.routes.ts35
1 files changed, 35 insertions, 0 deletions
diff --git a/client/src/app/+admin/jobs/job.routes.ts b/client/src/app/+admin/jobs/job.routes.ts
new file mode 100644
index 000000000..a7bf2b221
--- /dev/null
+++ b/client/src/app/+admin/jobs/job.routes.ts
@@ -0,0 +1,35 @@
1import { Routes } from '@angular/router'
2
3import { UserRightGuard } from '../../core'
4import { FollowingAddComponent } from './following-add'
5import { UserRight } from '../../../../../shared'
6import { FollowingListComponent } from './following-list/following-list.component'
7import { JobsComponent } from './job.component'
8import { JobsListComponent } from './jobs-list/jobs-list.component'
9
10export 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]