]>
Commit | Line | Data |
---|---|---|
1 | import { Routes } from '@angular/router' | |
2 | import { EditCustomConfigComponent } from '@app/+admin/config/edit-custom-config' | |
3 | import { UserRightGuard } from '@app/core' | |
4 | import { UserRight } from '@shared/models' | |
5 | ||
6 | export const ConfigRoutes: Routes = [ | |
7 | { | |
8 | path: 'config', | |
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: { | |
24 | title: $localize`Edit custom configuration` | |
25 | } | |
26 | } | |
27 | } | |
28 | ] | |
29 | } | |
30 | ] |