1
|
import {RouterModule, Routes} from "@angular/router";
|
2
|
import {AdminPgComponent} from "./adminPg.component";
|
3
|
import {NgModule} from "@angular/core";
|
4
|
import {AdminPgHelpTextsComponent} from "./adminPg-help-texts.component";
|
5
|
import {AdminPgMetricsComponent} from './adminPg-metrics.component';
|
6
|
import {AuthGuardService} from '../../services/auth-guard.service';
|
7
|
|
8
|
const adminRoutes: Routes = [
|
9
|
{
|
10
|
path: '',
|
11
|
component: AdminPgComponent,
|
12
|
children: [
|
13
|
{
|
14
|
path: '',
|
15
|
redirectTo: '/help-texts',
|
16
|
pathMatch: 'full'
|
17
|
},
|
18
|
{
|
19
|
path: 'help-texts',
|
20
|
component: AdminPgHelpTextsComponent
|
21
|
},
|
22
|
{
|
23
|
path: 'metrics',
|
24
|
component: AdminPgMetricsComponent
|
25
|
}
|
26
|
]
|
27
|
}
|
28
|
];
|
29
|
|
30
|
@NgModule ({
|
31
|
imports: [RouterModule.forChild(adminRoutes)],
|
32
|
exports: [RouterModule]
|
33
|
})
|
34
|
|
35
|
export class AdminPgRouting {}
|