You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
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';
|
|
|
|
|
|
|
|
const routes: Routes = [
|
|
|
|
{ path: 'plan', component: PlanComponent , data: { permission: 'xxxx' },canActivate: [AuthGuard]},
|
|
|
|
{ path: 'warning/petrolStation', component: TodayWarningComponent },
|
|
|
|
{ path: 'warning/admin', component: TodayWarningAdminComponent },
|
|
|
|
{ path: 'records/petrolStation', component: CriminalRecordsComponent }
|
|
|
|
];
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [RouterModule.forChild(routes)],
|
|
|
|
exports: [RouterModule]
|
|
|
|
})
|
|
|
|
export class PagesRoutingModule { }
|