Project

General

Profile

1
/**
2
 * Created by myrto on 11/27/17.
3
 */
4
import { NgModule } from "@angular/core";
5
import { RouterModule, Routes } from "@angular/router";
6
import { MetricsComponent } from './metrics.component';
7
import { MetricsEnableComponent } from './metrics-enable.component';
8
import { MetricsInstructionsComponent } from './metrics-instructions.component';
9
import { AuthGuardService } from '../../services/auth-guard.service';
10
import { MetricsShowComponent } from './metrics-show.component';
11
import {MetricsUsagestatsComponent} from "./metrics-usagestats.component";
12

    
13
const metricsRoutes: Routes = [
14
    {
15
      path: '',
16
      component: MetricsComponent,
17
    },
18
    {
19
      path: 'enable/:id',
20
      component: MetricsEnableComponent
21
    },
22
    {
23
      path: 'show_metrics/:id',
24
      component: MetricsShowComponent
25
    },
26
    {
27
      path: 'instructions/:id',
28
      component: MetricsInstructionsComponent
29
    },
30
    {
31
      path: 'usagestats/:id',
32
      component: MetricsUsagestatsComponent
33
    }
34
];
35

    
36

    
37
@NgModule ({
38
  imports: [RouterModule.forChild(metricsRoutes)],
39
  exports: [RouterModule]
40
})
41

    
42
export class MetricsRouting {}
43

    
(12-12/12)