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

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

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