import { NgModule } from '@angular/core';
import { PreloadAllModules, RouterModule, Routes } from '@angular/router';

const routes: Routes = [
  {
    path: 'home',
    loadChildren: () => import('./home/home.module').then( m => m.HomePageModule)
  },
  {
    path: '',
    redirectTo: 'home',
    pathMatch: 'full'
  },
  {
    path: 'merms-login',
    loadChildren: () => import('./merms-login/merms-login.module').then( m => m.MermsLoginPageModule)
  },
  {
    path: 'merms-signup',
    loadChildren: () => import('./merms-signup/merms-signup.module').then( m => m.MermsSignupPageModule)
  },
  {
    path: 'merms-dash',
    loadChildren: () => import('./merms-dash/merms-dash.module').then( m => m.MermsDashPageModule)
  },
  {
    path: 'merms-settings',
    loadChildren: () => import('./merms-settings/merms-settings.module').then( m => m.MermsSettingsPageModule)
  },
  {
    path: 'merms-practice',
    loadChildren: () => import('./merms-practice/merms-practice.module').then( m => m.MermsPracticePageModule)
  },
  {
    path: 'merms-patient',
    loadChildren: () => import('./merms-patient/merms-patient.module').then( m => m.MermsPatientPageModule)
  },
];

@NgModule({
  imports: [
    RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
  ],
  exports: [RouterModule]
})
export class AppRoutingModule { }
