import { Routes } from '@angular/router';
import { PackageDetailsComponent } from './package-details';
import { PackageInspectionComponent } from './package-inspection.component';
import { PackageResultComponent } from './package-result';

export const packageInspectionRoutes: Routes = [
  {
    path: '',
    component: PackageInspectionComponent,
    children: [
      {
        path: 'packages',
        component: PackageResultComponent,
      },
      {
        path: 'packages/:id',
        component: PackageDetailsComponent,
      },
      { path: '**', redirectTo: 'packages' },
    ],
  },
];
