import { Routes, RouterModule } from '@angular/router';
import { NgModule } from '@angular/core';
import { LayoutPageComponent } from './pages/layout-page/layout-page.component';
import { LoginComponent } from './pages/login/login.component';
import { ChangePasswordComponent } from './pages/change-password/change-password.component';



const routes: Routes = [
    {
        path: '', component: LayoutPageComponent, children: [
            { path: 'login', component: LoginComponent },
            { path: 'changePassword', component: ChangePasswordComponent },
            {path: '**', redirectTo: 'login'},
        ]
    },

];

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