source: WineTrackerFinal/WineTrackerUI/WineTracker/src/app/app-routing.module.ts@ 04008ae

main
Last change on this file since 04008ae was 04008ae, checked in by Nikola Mishevski <Nikola.Mishevski@…>, 6 days ago

WineTracker UI Added to Git

  • Property mode set to 100644
File size: 6.4 KB
Line 
1import { NgModule } from '@angular/core';
2import { Routes, RouterModule } from '@angular/router';
3import { ShipmentComponent } from './ShipmentEntity/shipment/shipment.component';
4import { HomeComponent } from './home/home.component';
5import { ShipmentCreateComponent } from './ShipmentEntity/shipment-create/shipment-create.component';
6import { CustomerComponent } from './CustomerEntity/customer/customer.component';
7import { EmployeeComponent } from './EmployeeEntity/employee/employee.component';
8import { VehicleComponent } from './VehicleEntity/vehicle/vehicle.component';
9import { WarehouseComponent } from './WarehouseEntity/warehouse/warehouse.component';
10import { WineComponent } from './WineEntity/wine/wine.component';
11import { CustomerTypeComponent } from './CustomerTypeEntity/customer-type/customer-type.component';
12import { WineTypeComponent } from './WineTypeEntity/wine-type/wine-type.component';
13import { ExpenseTypeComponent } from './ExpenseTypeEntity/expense-type/expense-type.component';
14import { VehicleTypeComponent } from './VehicleTypeEntity/vehicle-type/vehicle-type.component';
15import { ShipmentDetailsComponent } from './ShipmentEntity/shipment-details/shipment-details.component';
16import { VehicleTypeCreateComponent } from './VehicleTypeEntity/vehicle-type-create/vehicle-type-create.component';
17import { VehicleTypeEditComponent } from './VehicleTypeEntity/vehicle-type-edit/vehicle-type-edit.component';
18import { ExpenseTypeCreateComponent } from './ExpenseTypeEntity/expense-type-create/expense-type-create.component';
19import { ExpenseTypeEditComponent } from './ExpenseTypeEntity/expense-type-edit/expense-type-edit.component';
20import { WineTypeCreateComponent } from './WineTypeEntity/wine-type-create/wine-type-create.component';
21import { WineTypeEditComponent } from './WineTypeEntity/wine-type-edit/wine-type-edit.component';
22import { CustomerTypeCreateComponent } from './CustomerTypeEntity/customer-type-create/customer-type-create.component';
23import { CustomerTypeEditComponent } from './CustomerTypeEntity/customer-type-edit/customer-type-edit.component';
24import { WarehouseEditComponent } from './WarehouseEntity/warehouse-edit/warehouse-edit.component';
25import { WarehouseCreateComponent } from './WarehouseEntity/warehouse-create/warehouse-create.component';
26import { WineCreateComponent } from './WineEntity/wine-create/wine-create.component';
27import { WineEditComponent } from './WineEntity/wine-edit/wine-edit.component';
28import { CustomerCreateComponent } from './CustomerEntity/customer-create/customer-create.component';
29import { CustomerEditComponent } from './CustomerEntity/customer-edit/customer-edit.component';
30import { VehicleDetailsComponent } from './VehicleDetailsEntity/vehicle-details/vehicle-details.component';
31import { VehicleDetailsCreateComponent } from './VehicleDetailsEntity/vehicle-details-create/vehicle-details-create.component';
32import { VehicleDetailsEditComponent } from './VehicleDetailsEntity/vehicle-details-edit/vehicle-details-edit.component';
33import { VehicleCreateComponent } from './VehicleEntity/vehicle-create/vehicle-create.component';
34import { VehicleEditComponent } from './VehicleEntity/vehicle-edit/vehicle-edit.component';
35import { ReportsComponent } from './Reports/reports/reports.component';
36import { EmployeeCreateComponent } from './EmployeeEntity/employee-create/employee-create.component';
37import { EmployeeEditComponent } from './EmployeeEntity/employee-edit/employee-edit.component';
38import { EmployeeAddVehicleComponent } from './EmployeeEntity/employee-add-vehicle/employee-add-vehicle.component';
39import { ShipmentAddExpenseComponent } from './ShipmentEntity/shipment-add-expense/shipment-add-expense.component';
40import { ShipmentEditComponent } from './ShipmentEntity/shipment-edit/shipment-edit.component';
41
42const 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})
86export class AppRoutingModule { }
Note: See TracBrowser for help on using the repository browser.