diff options
Diffstat (limited to 'client/src/app/+admin/jobs/job.routes.ts')
-rw-r--r-- | client/src/app/+admin/jobs/job.routes.ts | 35 |
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 @@ | |||
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 | ] | ||