import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { IntroLetterComponent } from './intro-letter/intro-letter.component';
import { ListIntroLettersComponent } from './list-intro-letters/list-intro-letters.component';

const routes: Routes = [
    {
        path: '',
        component: ListIntroLettersComponent
    },
    {
        path: ':id',
        component: IntroLetterComponent
    }
];

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