import {NgModule} from "@angular/core";
import {RouterModule, Routes} from "@angular/router";
import {AuthGuard} from "../security/guard/auth.guard";

const webbpmRoutes: Routes = [
  {
    path: '',
    loadChildren: 'generated-sources/page-lkfl.module#PagelkflModule',
    canActivate: [AuthGuard],
    pathMatch: 'full',
  },
  {
    path: '**',
    redirectTo: '',
  }
];

@NgModule({
  imports: [RouterModule.forRoot(webbpmRoutes, {
    useHash: true,
    onSameUrlNavigation: "reload"
  })],
  exports: [RouterModule]
})
export class WebbpmRoutingModule {

}
