import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { NoTokenProvidedComponent } from './components/no-token-provided/no-token-provided.component';
import { RegisterBaseComponent } from './components/register-base/register-base.component';
import { RegisterComponent } from './components/register/register.component';

const routes: Routes = [
  { path: '', component: RegisterBaseComponent, children: [
    {
      path: 'no-token',
      component: NoTokenProvidedComponent
    },
    {
      path: ':token',
      component: RegisterComponent
    }
  ] }
];

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