New dashboard look & feel
[src/xds/xds-agent.git] / webapp / src / app / pages / pages-routing.module.ts
1 import { RouterModule, Routes } from '@angular/router';
2 import { NgModule } from '@angular/core';
3
4 import { PagesComponent } from './pages.component';
5 import { DashboardComponent } from './dashboard/dashboard.component';
6 import { ProjectsComponent } from './projects/projects.component';
7 import { SdksComponent } from './sdks/sdks.component';
8 import { BuildComponent } from './build/build.component';
9
10 const routes: Routes = [{
11   path: '',
12   component: PagesComponent,
13   children: [{
14     path: 'dashboard',
15     component: DashboardComponent,
16   }, {
17     path: 'projects',
18     component: ProjectsComponent,
19   }, {
20     path: 'sdks',
21     component: SdksComponent,
22   }, {
23     path: 'build',
24     component: BuildComponent,
25   }, {
26     path: 'config',
27     loadChildren: './config/config.module#ConfigModule',
28   },
29   {
30     path: '',
31     redirectTo: 'dashboard',
32     pathMatch: 'full',
33   }],
34 }];
35
36 @NgModule({
37   imports: [RouterModule.forChild(routes)],
38   exports: [RouterModule],
39 })
40 export class PagesRoutingModule {
41 }