import {Routes} from '@angular/router';
import {LayoutComponent} from '../layout/layout.component';

export const routes: Routes = [

  {
    path: '',
    component: LayoutComponent,
    children: [
      {path: '', redirectTo: 'home', pathMatch: 'full'},
      {path: 'home', loadChildren: () => import('./home/home.module').then(m => m.HomeModule)},
      {path: 'frame', loadChildren: () => import('./frame/frame.module').then(m => m.FrameModule)},
      {path: 'weixin', loadChildren: () => import('./weixin/weixin.module').then(m => m.WeixinModule)},
      {path: 'cf', loadChildren: () => import('./cf/cf.module').then(m => m.CfModule)},
      {path: 'imp', loadChildren: () => import('./imp/imp.module').then(m => m.ImpModule)},
      {path: 'review', loadChildren: () => import('./review/review.module').then(m => m.ReviewModule)},
      {path: 'std', loadChildren: () => import('./std/std.module').then(m => m.StdModule)},

    ]
  },

  // Not lazy-loaded routes
  // { path: 'login', component: LoginComponent },

  // Not found
  {path: '**', redirectTo: 'home'}

];
