mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-09-22 05:50:48 +02:00

BREAKING CHANGE: Angular updated to version 9. Nebular updated to version 5. `@agm/core` replaced with `@angular/google-maps`. `ng2-completer` replaced with `@akveo/ng2-completer`, read details [here](https://github.com/akveo/ng2-smart-table/pull/1140#issue-392285957).
61 lines
1.3 KiB
TypeScript
61 lines
1.3 KiB
TypeScript
import { ExtraOptions, RouterModule, Routes } from '@angular/router';
|
|
import { NgModule } from '@angular/core';
|
|
import {
|
|
NbAuthComponent,
|
|
NbLoginComponent,
|
|
NbLogoutComponent,
|
|
NbRegisterComponent,
|
|
NbRequestPasswordComponent,
|
|
NbResetPasswordComponent,
|
|
} from '@nebular/auth';
|
|
|
|
export const routes: Routes = [
|
|
{
|
|
path: 'pages',
|
|
loadChildren: () => import('./pages/pages.module')
|
|
.then(m => m.PagesModule),
|
|
},
|
|
{
|
|
path: 'auth',
|
|
component: NbAuthComponent,
|
|
children: [
|
|
{
|
|
path: '',
|
|
component: NbLoginComponent,
|
|
},
|
|
{
|
|
path: 'login',
|
|
component: NbLoginComponent,
|
|
},
|
|
{
|
|
path: 'register',
|
|
component: NbRegisterComponent,
|
|
},
|
|
{
|
|
path: 'logout',
|
|
component: NbLogoutComponent,
|
|
},
|
|
{
|
|
path: 'request-password',
|
|
component: NbRequestPasswordComponent,
|
|
},
|
|
{
|
|
path: 'reset-password',
|
|
component: NbResetPasswordComponent,
|
|
},
|
|
],
|
|
},
|
|
{ path: '', redirectTo: 'pages', pathMatch: 'full' },
|
|
{ path: '**', redirectTo: 'pages' },
|
|
];
|
|
|
|
const config: ExtraOptions = {
|
|
useHash: false,
|
|
};
|
|
|
|
@NgModule({
|
|
imports: [RouterModule.forRoot(routes, config)],
|
|
exports: [RouterModule],
|
|
})
|
|
export class AppRoutingModule {
|
|
}
|