import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { CalendarViewComponent } from './pages/calendar';
import { TasksViewComponent } from './pages/tasks';

const routes: Routes = [
  {
    path: 'calendar',
    component: CalendarViewComponent,
  },
  {
    path: 'tasks',
    component: TasksViewComponent,
  },
  { path: '', pathMatch: 'full', redirectTo: 'calendar' },
];

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