import { CanActivate, CanActivateChild, Routes } from '@angular/router';
import { FeatureOneComponent } from './feature-one.component';
import { LoggedInGuard, AccountSelectedGuard, RoleCheckGuard } from '@railinc/rl-ngx-core';
const GUARDS = [LoggedInGuard, AccountSelectedGuard];
const ROLES = ['APPADMIN', 'RSIGHTMONUSR'];
export const FEATURE_ONE_ROUTES = [
{
path: '',
component : FeatureOneComponent,
canActivate : GUARDS
},
{
path: '',
canActivateChild : GUARDS,
children: [
{ path: 'splc', canActivate : [RoleCheckGuard], loadChildren: './splc#SplcModule', data : { roles : ROLES } }
]
},
];
|