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
import { MetricsUsagestatsReportResultsComponent } from './metrics-usagestats-report-results.component';
13
import {MetricsUsagestatsReportComponent} from "./metrics-usagestats-report.component";
14

    
15
const metricsRoutes: Routes = [
16
    {
17
      path: '',
18
      component: MetricsComponent,
19
    },
20
    {
21
      path: 'enable/:id',
22
      component: MetricsEnableComponent
23
    },
24
    {
25
      path: 'show_metrics/:id',
26
      component: MetricsShowComponent
27
    },
28
    {
29
      path: 'instructions/:id',
30
      component: MetricsInstructionsComponent
31
    },
32
    {
33
      path: 'usagestats/:id',
34
      component: MetricsUsagestatsComponent
35
    },
36
    {
37
      path: 'usagestats/:id/:reportID',
38
      component: MetricsUsagestatsReportComponent
39
    },
40
    {
41
      path: 'usagestats-report-results',
42
      component: MetricsUsagestatsReportResultsComponent
43
    }
44
];
45

    
46

    
47
@NgModule ({
48
  imports: [RouterModule.forChild(metricsRoutes)],
49
  exports: [RouterModule]
50
})
51

    
52
export class MetricsRouting {}
53

    
(16-16/16)