import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { CharacterPickerComponent } from './character-picker/character-picker.component';
import { CharacterCreatorComponent } from './character-creator/character-creator.component';

const routes: Routes = [
  { path: 'picker', component: CharacterPickerComponent },
  { path: 'creator', component: CharacterCreatorComponent },
  { path: '**', redirectTo: 'picker', pathMatch: 'full' },
];

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