summaryrefslogtreecommitdiffstats
path: root/webapp/src/app/pages/config/config-routing.module.ts
blob: 4e7cf27aa60f2b0cbe774ec7548f34aceab60e38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

import { ConfigComponent } from './config.component';
import { ConfigGlobalComponent } from './config-global/config-global.component';
import { ConfigXdsComponent } from './config-xds/config-xds.component';

const routes: Routes = [{
  path: '',
  component: ConfigComponent,
  children: [
    {
      path: 'global',
      component: ConfigGlobalComponent,
    }, {
      path: 'xds',
      component: ConfigXdsComponent,
    },
  ],
}];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule],
})
export class ConfigRoutingModule { }

export const routedConfig = [
  ConfigComponent,
  ConfigGlobalComponent,
  ConfigXdsComponent,
];