26 lines
682 B
TypeScript
26 lines
682 B
TypeScript
import { CommonModule } from '@angular/common';
|
|
import { NgModule } from '@angular/core';
|
|
import { RouterModule, Routes } from '@angular/router';
|
|
|
|
import { authGuard } from '../auth/auth-guard.service';
|
|
|
|
import { EmployeeFunctionsComponent } from './employee-functions.component';
|
|
|
|
const employeeFunctionsRoutes: Routes = [
|
|
{
|
|
path: '',
|
|
component: EmployeeFunctionsComponent,
|
|
canActivate: [authGuard],
|
|
data: {
|
|
permission: 'employee-benefit',
|
|
},
|
|
runGuardsAndResolvers: 'always',
|
|
},
|
|
];
|
|
|
|
@NgModule({
|
|
imports: [CommonModule, RouterModule.forChild(employeeFunctionsRoutes)],
|
|
exports: [RouterModule],
|
|
})
|
|
export class EmployeeFunctionsRoutingModule {}
|