import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; const routes: Routes = [ { path: '', pathMatch: 'full', redirectTo: '/auth2/login', }, { path: 'charts', loadChildren: () => import('modules/charts/charts-routing.module').then(m => m.ChartsRoutingModule), }, { path: 'dashboard', loadChildren: () => import('modules/dashboard/dashboard-routing.module').then( m => m.DashboardRoutingModule ), }, { path: 'auth', loadChildren: () => import('modules/auth/auth-routing.module').then(m => m.AuthRoutingModule), }, { path: 'error', loadChildren: () => import('modules/error/error-routing.module').then(m => m.ErrorRoutingModule), }, { path: 'tables', loadChildren: () => import('modules/tables/tables-routing.module').then(m => m.TablesRoutingModule), }, { path: 'version', loadChildren: () => import('modules/utility/utility-routing.module').then(m => m.UtilityRoutingModule), }, { path: 'auth2', loadChildren: () => import('pages/auth/auth-routing.module').then(m => m.AuthRoutingModule), }, { path: 'users', loadChildren: () => import('pages/users/users-routing.module').then(m => m.UsersRoutingModule), }, { path: 'courses', loadChildren: () => import('pages/courses/courses-routing.module').then(m => m.CoursesRoutingModule), }, { path: 'classes', loadChildren: () => import('pages/classes/classes-routing.module').then(m => m.ClassesRoutingModule), }, { path: 'books', loadChildren: () => import('pages/books/books-routing.module').then(m => m.BooksRoutingModule), }, { path: 'student', loadChildren: () => import('pages/doing-class/doing-class-routing.module').then(m => m.DoingClassRoutingModule), }, { path: '**', pathMatch: 'full', loadChildren: () => import('modules/error/error-routing.module').then(m => m.ErrorRoutingModule), }, ]; @NgModule({ imports: [RouterModule.forRoot(routes, { relativeLinkResolution: 'legacy' })], exports: [RouterModule], }) export class AppRoutingModule {}