import { AttackEditComponent } from './attack-edit/attack-edit.component';
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { AttacksListComponent } from './attacks-list/attacks-list.component';
import { AttackDetailComponent } from './attack-detail/attack-detail.component';

const attacksRoutes: Routes = [
  { path: '', component: AttacksListComponent, pathMatch: 'full' },
  { path: 'new', component: AttackEditComponent },
  { path: ':id', component: AttackDetailComponent },
  { path: ':id/edit', component: AttackEditComponent }
];

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