]>
Commit | Line | Data |
---|---|---|
fd206f0b C |
1 | import { Routes } from '@angular/router' |
2 | import { EditCustomConfigComponent } from '@app/+admin/config/edit-custom-config' | |
3 | import { UserRightGuard } from '@app/core' | |
67ed6552 | 4 | import { UserRight } from '@shared/models' |
fd206f0b C |
5 | import { ConfigComponent } from './config.component' |
6 | ||
7 | export const ConfigRoutes: Routes = [ | |
8 | { | |
9 | path: 'config', | |
10 | component: ConfigComponent, | |
11 | canActivate: [ UserRightGuard ], | |
12 | data: { | |
13 | userRight: UserRight.MANAGE_CONFIGURATION | |
14 | }, | |
15 | children: [ | |
16 | { | |
17 | path: '', | |
18 | redirectTo: 'edit-custom', | |
19 | pathMatch: 'full' | |
20 | }, | |
21 | { | |
22 | path: 'edit-custom', | |
23 | component: EditCustomConfigComponent, | |
24 | data: { | |
25 | meta: { | |
1f30a185 | 26 | title: 'Edit custom configuration' |
fd206f0b C |
27 | } |
28 | } | |
29 | } | |
30 | ] | |
31 | } | |
32 | ] |