feat(auth): auth pages added

This commit is contained in:
Dmitry Nehaychik 2017-08-02 17:27:19 +03:00
parent 210c6f2355
commit 75dd743244
6 changed files with 73 additions and 4 deletions

View file

@ -1,9 +1,46 @@
import { ExtraOptions, RouterModule, Routes } from '@angular/router';
import { NgModule } from '@angular/core';
import {
NgaAuthComponent,
NgaLoginComponent,
NgaLogoutComponent,
NgaRegisterComponent,
NgaRequestPasswordComponent,
NgaResetPasswordComponent
} from '@akveo/nga-auth';
const routes: Routes = [
// {path: 'admin'}
{ path: 'pages', loadChildren: 'app/pages/pages.module#PagesModule' },
{
path: 'auth',
component: NgaAuthComponent,
children: [
{
path: '',
component: NgaLoginComponent,
},
{
path: 'login',
component: NgaLoginComponent,
},
{
path: 'register',
component: NgaRegisterComponent,
},
{
path: 'logout',
component: NgaLogoutComponent,
},
{
path: 'request-password',
component: NgaRequestPasswordComponent,
},
{
path: 'reset-password',
component: NgaResetPasswordComponent,
},
],
},
{ path: '', redirectTo: 'pages', pathMatch: 'full' },
{ path: '**', redirectTo: 'pages' },
];