import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { UserrolemappingComponent } from './userrolemapping/userrolemapping.component';
import { UserprojectmappingComponent } from './userprojectmapping/userprojectmapping.component';
import { UserstagemappingComponent } from './userstagemapping/userstagemapping.component';
import { AuthGuard } from '../auth.guard';
import { UseremailmappingComponent } from './useremailmapping/useremailmapping.component';

const routes: Routes = [
  { path: '', component: UserrolemappingComponent , canActivate: [AuthGuard]},
  { path: 'userrolemapping', component: UserrolemappingComponent, canActivate: [AuthGuard] },
  { path: 'userprojectmapping', component: UserprojectmappingComponent , canActivate: [AuthGuard]},
  { path: 'userstagemapping', component: UserstagemappingComponent, canActivate: [AuthGuard] },
  { path: 'useremailmapping', component: UseremailmappingComponent, canActivate: [AuthGuard] },
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class UsermanagementRoutingModule { }
