blob: 7c1a1a16633704c2cb090eeb7524856553230a82 (
plain) (
tree)
|
|
import { Routes } from '@angular/router'
import { EditCustomConfigComponent } from '@app/+admin/config/edit-custom-config'
import { UserRightGuard } from '@app/core'
import { UserRight } from '@shared/models'
import { ConfigComponent } from './config.component'
export const ConfigRoutes: Routes = [
{
path: 'config',
component: ConfigComponent,
canActivate: [ UserRightGuard ],
data: {
userRight: UserRight.MANAGE_CONFIGURATION
},
children: [
{
path: '',
redirectTo: 'edit-custom',
pathMatch: 'full'
},
{
path: 'edit-custom',
component: EditCustomConfigComponent,
data: {
meta: {
title: 'Edit custom configuration'
}
}
}
]
}
]
|