New dashboard look & feel
[src/xds/xds-agent.git] / webapp / src / app / app-routing.module.ts
1 import { ExtraOptions, RouterModule, Routes } from '@angular/router';
2 import { NgModule } from '@angular/core';
3 import {
4   NbAuthComponent,
5   NbLoginComponent,
6   NbLogoutComponent,
7   NbRegisterComponent,
8   NbRequestPasswordComponent,
9   NbResetPasswordComponent,
10 } from '@nebular/auth';
11
12 const routes: Routes = [
13   { path: 'pages', loadChildren: 'app/pages/pages.module#PagesModule' },
14   {
15     path: 'auth',
16     component: NbAuthComponent,
17     children: [
18       {
19         path: '',
20         component: NbLoginComponent,
21       },
22       {
23         path: 'login',
24         component: NbLoginComponent,
25       },
26       {
27         path: 'register',
28         component: NbRegisterComponent,
29       },
30       {
31         path: 'logout',
32         component: NbLogoutComponent,
33       },
34       {
35         path: 'request-password',
36         component: NbRequestPasswordComponent,
37       },
38       {
39         path: 'reset-password',
40         component: NbResetPasswordComponent,
41       },
42     ],
43   },
44   { path: '', redirectTo: 'pages', pathMatch: 'full' },
45   { path: '**', redirectTo: 'pages' },
46 ];
47
48 const config: ExtraOptions = {
49   useHash: true,
50 };
51
52 @NgModule({
53   imports: [RouterModule.forRoot(routes, config)],
54   exports: [RouterModule],
55 })
56 export class AppRoutingModule {
57 }