Project

General

Profile

1
import { NgModule} from "@angular/core";
2
import { RouterModule, Routes } from "@angular/router";
3

    
4
import { CompatibilityComponent } from "./compatibility.component";
5
import { CompatibilityValidateTypeComponent } from './compatibility-validate-type.component';
6
import { CompatibilityValidationHistoryComponent } from './compatibility-validation-history.component';
7
import { CompatibilityValidationResultsComponent } from './compatibility-validation-results.component';
8
import { CompatibilityMonitorComponent } from './compatibility-monitor.component';
9
import { CompatibilityMonitorRepoComponent } from './compatibility-monitor-repo.component';
10
import { CompatibilityMonitorFullHistoryRepoComponent } from './compatibility-monitor-fullHistory-repo.component';
11
import { CompatibilityValidateComponent } from './compatibility-validate.component';
12
import { AuthGuardService } from '../../services/auth-guard.service';
13

    
14
const compatibilityRoutes: Routes = [
15
  {
16
    path: '',
17
    component: CompatibilityComponent,
18
    children: [
19
      {
20
        path: 'validate',
21
        component: CompatibilityValidateComponent,
22
        canActivate: [AuthGuardService]
23
      },
24
      {
25
        path: 'validate/:type',
26
        component: CompatibilityValidateTypeComponent,
27
        canActivate: [AuthGuardService]
28
      },
29
      {
30
        path: 'browseHistory',
31
        component: CompatibilityValidationHistoryComponent,
32
        canActivate: [AuthGuardService]
33
      },
34
      {
35
        path: 'browseHistory/:id',
36
        component: CompatibilityValidationResultsComponent
37
      },
38
      {
39
        path: 'monitor',
40
        component: CompatibilityMonitorComponent,
41
        canActivate: [AuthGuardService]
42
      },
43
      {
44
        path: 'monitor/:id',
45
        component: CompatibilityMonitorRepoComponent,
46
        canActivate: [AuthGuardService]
47
      },
48
      {
49
        path: 'monitor/fullHistory/:id',
50
        component: CompatibilityMonitorFullHistoryRepoComponent,
51
        canActivate: [AuthGuardService]
52
      }
53
    ]
54
  }
55
];
56

    
57
@NgModule ({
58
  imports: [RouterModule.forChild(compatibilityRoutes)],
59
  exports: [RouterModule]
60
})
61

    
62
export class CompatibilityRouting {}
(17-17/17)