[04008ae] | 1 | import { NgModule } from '@angular/core';
|
---|
| 2 | import { Routes, RouterModule } from '@angular/router';
|
---|
| 3 | import { ShipmentComponent } from './ShipmentEntity/shipment/shipment.component';
|
---|
| 4 | import { HomeComponent } from './home/home.component';
|
---|
| 5 | import { ShipmentCreateComponent } from './ShipmentEntity/shipment-create/shipment-create.component';
|
---|
| 6 | import { CustomerComponent } from './CustomerEntity/customer/customer.component';
|
---|
| 7 | import { EmployeeComponent } from './EmployeeEntity/employee/employee.component';
|
---|
| 8 | import { VehicleComponent } from './VehicleEntity/vehicle/vehicle.component';
|
---|
| 9 | import { WarehouseComponent } from './WarehouseEntity/warehouse/warehouse.component';
|
---|
| 10 | import { WineComponent } from './WineEntity/wine/wine.component';
|
---|
| 11 | import { CustomerTypeComponent } from './CustomerTypeEntity/customer-type/customer-type.component';
|
---|
| 12 | import { WineTypeComponent } from './WineTypeEntity/wine-type/wine-type.component';
|
---|
| 13 | import { ExpenseTypeComponent } from './ExpenseTypeEntity/expense-type/expense-type.component';
|
---|
| 14 | import { VehicleTypeComponent } from './VehicleTypeEntity/vehicle-type/vehicle-type.component';
|
---|
| 15 | import { ShipmentDetailsComponent } from './ShipmentEntity/shipment-details/shipment-details.component';
|
---|
| 16 | import { VehicleTypeCreateComponent } from './VehicleTypeEntity/vehicle-type-create/vehicle-type-create.component';
|
---|
| 17 | import { VehicleTypeEditComponent } from './VehicleTypeEntity/vehicle-type-edit/vehicle-type-edit.component';
|
---|
| 18 | import { ExpenseTypeCreateComponent } from './ExpenseTypeEntity/expense-type-create/expense-type-create.component';
|
---|
| 19 | import { ExpenseTypeEditComponent } from './ExpenseTypeEntity/expense-type-edit/expense-type-edit.component';
|
---|
| 20 | import { WineTypeCreateComponent } from './WineTypeEntity/wine-type-create/wine-type-create.component';
|
---|
| 21 | import { WineTypeEditComponent } from './WineTypeEntity/wine-type-edit/wine-type-edit.component';
|
---|
| 22 | import { CustomerTypeCreateComponent } from './CustomerTypeEntity/customer-type-create/customer-type-create.component';
|
---|
| 23 | import { CustomerTypeEditComponent } from './CustomerTypeEntity/customer-type-edit/customer-type-edit.component';
|
---|
| 24 | import { WarehouseEditComponent } from './WarehouseEntity/warehouse-edit/warehouse-edit.component';
|
---|
| 25 | import { WarehouseCreateComponent } from './WarehouseEntity/warehouse-create/warehouse-create.component';
|
---|
| 26 | import { WineCreateComponent } from './WineEntity/wine-create/wine-create.component';
|
---|
| 27 | import { WineEditComponent } from './WineEntity/wine-edit/wine-edit.component';
|
---|
| 28 | import { CustomerCreateComponent } from './CustomerEntity/customer-create/customer-create.component';
|
---|
| 29 | import { CustomerEditComponent } from './CustomerEntity/customer-edit/customer-edit.component';
|
---|
| 30 | import { VehicleDetailsComponent } from './VehicleDetailsEntity/vehicle-details/vehicle-details.component';
|
---|
| 31 | import { VehicleDetailsCreateComponent } from './VehicleDetailsEntity/vehicle-details-create/vehicle-details-create.component';
|
---|
| 32 | import { VehicleDetailsEditComponent } from './VehicleDetailsEntity/vehicle-details-edit/vehicle-details-edit.component';
|
---|
| 33 | import { VehicleCreateComponent } from './VehicleEntity/vehicle-create/vehicle-create.component';
|
---|
| 34 | import { VehicleEditComponent } from './VehicleEntity/vehicle-edit/vehicle-edit.component';
|
---|
| 35 | import { ReportsComponent } from './Reports/reports/reports.component';
|
---|
| 36 | import { EmployeeCreateComponent } from './EmployeeEntity/employee-create/employee-create.component';
|
---|
| 37 | import { EmployeeEditComponent } from './EmployeeEntity/employee-edit/employee-edit.component';
|
---|
| 38 | import { EmployeeAddVehicleComponent } from './EmployeeEntity/employee-add-vehicle/employee-add-vehicle.component';
|
---|
| 39 | import { ShipmentAddExpenseComponent } from './ShipmentEntity/shipment-add-expense/shipment-add-expense.component';
|
---|
| 40 | import { ShipmentEditComponent } from './ShipmentEntity/shipment-edit/shipment-edit.component';
|
---|
| 41 |
|
---|
| 42 | const routes: Routes = [
|
---|
| 43 | { path: '', component: HomeComponent },
|
---|
| 44 | { path: 'shipment', component: ShipmentComponent},
|
---|
| 45 | { path: 'shipment/create', component: ShipmentCreateComponent},
|
---|
| 46 | { path: 'shipment/edit/:shipmentId', component: ShipmentEditComponent},
|
---|
| 47 | { path: 'shipment/details/:shipmentId', component: ShipmentDetailsComponent},
|
---|
| 48 | { path: 'shipment/addExpense/:shipmentId', component: ShipmentAddExpenseComponent},
|
---|
| 49 | { path: 'customer', component: CustomerComponent},
|
---|
| 50 | { path: 'customer/create', component: CustomerCreateComponent},
|
---|
| 51 | { path: 'customer/edit/:customerId', component: CustomerEditComponent},
|
---|
| 52 | { path: 'employee', component: EmployeeComponent},
|
---|
| 53 | { path: 'employee/create', component: EmployeeCreateComponent},
|
---|
| 54 | { path: 'employee/edit/:employeeId', component: EmployeeEditComponent},
|
---|
| 55 | { path: 'employee/addVehicle/:employeeId', component: EmployeeAddVehicleComponent},
|
---|
| 56 | { path: 'vehicle', component: VehicleComponent},
|
---|
| 57 | { path: 'vehicle/create', component: VehicleCreateComponent},
|
---|
| 58 | { path: 'vehicle/edit/:vehicleId', component: VehicleEditComponent},
|
---|
| 59 | { path: 'warehouse', component: WarehouseComponent},
|
---|
| 60 | { path: 'warehouse/create', component: WarehouseCreateComponent},
|
---|
| 61 | { path: 'warehouse/edit/:warehouseId', component: WarehouseEditComponent},
|
---|
| 62 | { path: 'wine', component: WineComponent},
|
---|
| 63 | { path: 'wine/create', component: WineCreateComponent},
|
---|
| 64 | { path: 'wine/edit/:wineId', component: WineEditComponent},
|
---|
| 65 | { path: 'customerType', component: CustomerTypeComponent},
|
---|
| 66 | { path: 'customerType/create', component: CustomerTypeCreateComponent},
|
---|
| 67 | { path: 'customerType/edit/:customerTypeId', component: CustomerTypeEditComponent},
|
---|
| 68 | { path: 'wineType', component: WineTypeComponent},
|
---|
| 69 | { path: 'wineType/create', component: WineTypeCreateComponent},
|
---|
| 70 | { path: 'wineType/edit/:wineTypeId', component: WineTypeEditComponent},
|
---|
| 71 | { path: 'expenseType', component: ExpenseTypeComponent},
|
---|
| 72 | { path: 'expenseType/create', component: ExpenseTypeCreateComponent},
|
---|
| 73 | { path: 'expenseType/edit/:expenseTypeId', component: ExpenseTypeEditComponent},
|
---|
| 74 | { path: 'vehicleDetails', component: VehicleDetailsComponent},
|
---|
| 75 | { path: 'vehicleDetails/create', component: VehicleDetailsCreateComponent},
|
---|
| 76 | { path: 'vehicleDetails/edit/:vehicleDetailsId', component: VehicleDetailsEditComponent},
|
---|
| 77 | { path: 'vehicleType', component: VehicleTypeComponent},
|
---|
| 78 | { path: 'vehicleType/create', component: VehicleTypeCreateComponent},
|
---|
| 79 | { path: 'vehicleType/edit/:vehicleTypeId', component: VehicleTypeEditComponent},
|
---|
| 80 | { path: 'reports', component: ReportsComponent},
|
---|
| 81 | ];
|
---|
| 82 | @NgModule({
|
---|
| 83 | imports: [RouterModule.forRoot(routes)],
|
---|
| 84 | exports: [RouterModule]
|
---|
| 85 | })
|
---|
| 86 | export class AppRoutingModule { } |
---|