import {NgModule} from "@angular/core";
import {RouterModule, Routes} from "@angular/router";
import {
  ConfirmExitGuard
} from "@webbpm/base-package";

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

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

}
