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 import { ConfigComponent } from './config.component'
7 export const ConfigRoutes: Routes = [
10 component: ConfigComponent,
11 canActivate: [ UserRightGuard ],
13 userRight: UserRight.MANAGE_CONFIGURATION
18 redirectTo: 'edit-custom',
23 component: EditCustomConfigComponent,
26 title: $localize`Edit custom configuration`