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

const routes: Routes = [
  {
    path: '',
    pathMatch: 'full',
    loadChildren: () => import('./home/home.module').then(m => m.HomeModule),
  },
  {
    path: 'account',
    loadChildren: () => import('@abp/ng.account').then(m => m.AccountModule.forLazy()),
  },
  {
    path: 'identity',
    loadChildren: () => import('@abp/ng.identity').then(m => m.IdentityModule.forLazy()),
  },
  {
    path: 'tenant-management',
    loadChildren: () =>
      import('@abp/ng.tenant-management').then(m => m.TenantManagementModule.forLazy()),
  },
  {
    path: 'setting-management',
    loadChildren: () =>
      import('@abp/ng.setting-management').then(m => m.SettingManagementModule.forLazy()),
  },
  {
    path: 'appointment/appointment-calendar',
    loadChildren: () =>
      import('./appointment/appointment-calendar/appointment-calendar.module').then(
        m => m.AppointmentCalendarModule
      ),
  },
  {
    path: 'appointment/view-appointment',
    loadChildren: () =>
      import('./appointment/view-appointment/view-appointment.module').then(
        m => m.ViewAppointmentModule
      ),
  },
  {
    path: 'appointment/book-appointment',
    loadChildren: () =>
      import('./appointment/book-appointment/book-appointment.module').then(
        m => m.BookAppointmentModule
      ),
  },
  {
    path: 'appointment/edit-appointment',
    loadChildren: () =>
      import('./appointment/edit-appointment/edit-appointment.module').then(
        m => m.EditAppointmentModule
      ),
  },
  {
    path: 'patients',
    loadChildren: () => import('./patients/patients.module').then(m => m.PatientsModule),
  },
];

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