import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { AuthPageComponent } from './auth-page.component';

import { SigninPageComponent } from './signin/signin-page.component';
import { SignupPageComponent } from './signup/signup-page.component';
import { ResetPasswordPageComponent } from './reset-password/reset-password-page.component';
import { ModifyPasswordPageComponent } from './reset-password/modify-password-page.component';

const routes: Routes = [
  {
    path: '',
    component: AuthPageComponent,
    children: [
      { path: '', redirectTo: 'signin' },
      { path: 'signin', component: SigninPageComponent },
      { path: 'signup', component: SignupPageComponent },
      { path: 'reset-password', component: ResetPasswordPageComponent },
      { path: 'modify-password', component: ModifyPasswordPageComponent }
    ]
  }
];

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

