| import { NgModule } from '@angular/core'; |
| import { RouterModule, Routes } from '@angular/router'; |
| import { PageNotFoundComponent } from '@shared/components/pageNotFound/pageNotFound.component'; |
| |
| const appRoutes: Routes = [ |
| { path: '', redirectTo: '/overview', pathMatch: 'full' }, |
| { |
| path: 'admin', |
| loadChildren: './pages/admin/admin.module#AdminModule', |
| }, |
| { path: '**', component: PageNotFoundComponent }, |
| ]; |
| |
| @NgModule({ |
| imports: [RouterModule.forRoot(appRoutes)], |
| exports: [RouterModule], |
| }) |
| export class AppRoutingModule {} |