1 |
57321
|
k.triantaf
|
import { NgModule } from '@angular/core';
|
2 |
|
|
import { RouterModule } from '@angular/router';
|
3 |
|
|
import {FreeGuard} from '../openaireLibrary/login/freeGuard.guard';
|
4 |
|
|
import {PreviousRouteRecorder} from '../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
5 |
|
|
import {MonitorComponent} from "./monitor.component";
|
6 |
|
|
|
7 |
|
|
@NgModule({
|
8 |
|
|
imports: [
|
9 |
|
|
RouterModule.forChild([
|
10 |
57357
|
k.triantaf
|
{ path: ':stakeholder', component: MonitorComponent, canActivate: [FreeGuard], canDeactivate: [PreviousRouteRecorder] },
|
11 |
|
|
{ path: ':stakeholder/:topic', component: MonitorComponent, canActivate: [FreeGuard], canDeactivate: [PreviousRouteRecorder] },
|
12 |
|
|
{ path: ':stakeholder/:topic/:category', component: MonitorComponent, canActivate: [FreeGuard], canDeactivate: [PreviousRouteRecorder] },
|
13 |
|
|
{ path: ':stakeholder/:topic/:category/:subCategory', component: MonitorComponent, canActivate: [FreeGuard], canDeactivate: [PreviousRouteRecorder] }
|
14 |
57321
|
k.triantaf
|
])
|
15 |
|
|
]
|
16 |
|
|
})
|
17 |
|
|
export class MonitorRoutingModule { }
|