|
|
|
import { Routes, RouterModule } from '@angular/router';
|
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { PlanComponent } from './plan/plan.component';
|
|
|
|
import { TodayWarningComponent } from './today-warning/today-warning.component';
|
|
|
|
import { CriminalRecordsComponent } from './criminal-records/criminal-records.component';
|
|
|
|
import {AuthGuard} from '../auth.guard'
|
|
|
|
import { TodayWarningAdminComponent } from './today-warning-admin/today-warning-admin.component';
|
|
|
|
import { CriminalRecordsAdminComponent } from './criminal-records-admin/criminal-records-admin.component';
|
|
|
|
import { OilStationInfoComponent } from './oil-station-info/oil-station-info.component';
|
|
|
|
import { EquipmentInfoComponent } from './equipment-info/equipment-info.component';
|
|
|
|
import { PlanAdminComponent } from './plan-admin/plan-admin.component';
|
|
|
|
import { HomePageComponent } from './home-page/home-page.component';
|
|
|
|
|
|
|
|
const routes: Routes = [
|
|
|
|
{ path: 'homepage', component: HomePageComponent },
|
|
|
|
{ path: 'plan', component: PlanAdminComponent },
|
|
|
|
{ path: 'plan/petrolStation', component: PlanComponent },
|
|
|
|
{ path: 'warning', component: TodayWarningAdminComponent },
|
|
|
|
{ path: 'warning/petrolStation', component: TodayWarningComponent },
|
|
|
|
{ path: 'records', component: CriminalRecordsAdminComponent },
|
|
|
|
{ path: 'records/petrolStation', component: CriminalRecordsComponent },
|
|
|
|
{ path: 'equipmentInfo', component: EquipmentInfoComponent },
|
|
|
|
{ path: 'oliStationInfo', component: OilStationInfoComponent }
|
|
|
|
];
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [RouterModule.forChild(routes)],
|
|
|
|
exports: [RouterModule]
|
|
|
|
})
|
|
|
|
export class PagesRoutingModule { }
|