import { NgModule } from "@angular/core";
import { Routes, RouterModule } from "@angular/router";
import { ClientsEditComponent } from "./clients-edit/clients-edit.component";
import { ClientsListComponent } from "./clients-list/clients-list.component";

const routes: Routes = [
  {
    path: "",
    component: ClientsListComponent,
  },
  {
    path: ":id",
    component: ClientsEditComponent,
  },
  {
    path: "/add",
    component: ClientsEditComponent,
  },
];

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