]>
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 | |
6 | export const ConfigRoutes: Routes = [ | |
7 | { | |
8 | path: 'config', | |
fd206f0b C |
9 | canActivate: [ UserRightGuard ], |
10 | data: { | |
11 | userRight: UserRight.MANAGE_CONFIGURATION | |
12 | }, | |
13 | children: [ | |
14 | { | |
15 | path: '', | |
16 | redirectTo: 'edit-custom', | |
17 | pathMatch: 'full' | |
18 | }, | |
19 | { | |
20 | path: 'edit-custom', | |
21 | component: EditCustomConfigComponent, | |
22 | data: { | |
23 | meta: { | |
f29f487e | 24 | title: $localize`Edit custom configuration` |
fd206f0b C |
25 | } |
26 | } | |
27 | } | |
28 | ] | |
29 | } | |
30 | ] |