mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-17 07:50:12 +01:00
feat(auth): auth pages added
This commit is contained in:
parent
210c6f2355
commit
75dd743244
6 changed files with 73 additions and 4 deletions
|
|
@ -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' },
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue