import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { CardComponent } from "./card/card.component";
import { ListComponent } from "./list/list.component";

const routes: Routes = [
  { path: '', component: ListComponent },
  { path: ':id', component: CardComponent },
];

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