import { Routes } from '@angular/router';

export const routes: Routes = [
  {
    path: '',
    loadComponent: () =>
      import('./features/landing/landing.component').then((m) => m.LandingComponent),
  },
  {
    path: 'sessions',
    loadComponent: () =>
      import('./features/sessions/sessions-list/sessions-list.component').then((m) => m.SessionsListComponent),
  },
  {
    path: 'sessions/:id',
    loadComponent: () =>
      import('./features/sessions/session-detail/session-detail.component').then(
        (m) => m.SessionDetailComponent,
      ),
  },
  { path: '**', redirectTo: '' },
];
