import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { Routes, RouterModule } from '@angular/router';
import { UserManagementComponent } from './user-management/user-management.component';
import { RoleManagementComponent } from './role-management/role-management.component';

const routes: Routes = [
  {
    path: 'RoleManagement',
    loadChildren: () =>
      import('./role-management/role-management.module').then(
        (m) => m.RoleManagementModule
      ),
  },
  {
    path: 'UserManagement',
    loadChildren: () =>
      import('./user-management/user-management.module').then(
        (m) => m.UserManagementModule
      ),
  },
]

@NgModule({
  declarations: [
    RoleManagementComponent,
    UserManagementComponent
  ],
  imports: [
    CommonModule,
    RouterModule.forChild(routes),
  ]
})
export class UserConfigurationModule { }
