import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { ClassesPage } from './classes.page';

const routes: Routes = [
  {
    path: '',
    component: ClassesPage
  },
  {
    path: ':id',
    loadChildren: () => import('../class-detail/class-detail.module').then(m => m.ClassDetailPageModule)
  }
];

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