import {NgModule} from "@angular/core";
import {RouterModule, Routes} from "@angular/router";
import {AccessDeniedComponent} from "./component/access-denied.component";
import {AuthGuard} from "../security/guard/auth.guard";
import {ConfirmExitGuard} from "@webbpm/base-package";

const appRoutes: Routes = [
  {
    path: 'access-denied',
    component: AccessDeniedComponent,
    canActivate: [ConfirmExitGuard],
  },
  {
    path: 'mydata',
    loadChildren: 'generated-sources/page-mydata.module#PagemydataModule',
    canActivate: [AuthGuard],
  },
  {
    path: 'filesentlog',
    loadChildren: 'generated-sources/page-filesentlog.module#PagefilesentlogModule',
    canActivate: [AuthGuard],
  },
];

@NgModule({
  imports: [RouterModule.forChild(appRoutes)],
  exports: [RouterModule]
})
export class AppRoutingModule {

}
