import { Routes } from '@angular/router';
import { Login } from './login';
import { StaffComponent, StaffEditComponent } from './staff';
import { AuthGuard } from './route-guard';
import { FamilyTree, FamilyList} from './person';
import { ImportCom } from './import.com/import.com';
import { ImageDisplayComponent } from './pickperson/image.display';
export const routes: Routes = [
{ path: '', redirectTo: 'login', pathMatch: 'full' },
 //   { path: 'approval', component: ApprovalComponent,canActivate: [AuthGuard], data: { roleAllowed: '1,2,3' }},},
   { path: 'login', component: Login},
   { path: 'staff', component: StaffComponent},  
   { path: 'person', component: FamilyList},  
   { path: 'imagedisplay/:id', component: ImageDisplayComponent},  
    { path: 'import', component: ImportCom},  
   { path: 'familytree', component: FamilyTree},  
   { path: 'staff/:id', component: StaffEditComponent},

];
