2019-10-25 15:19:54 +02:00
|
|
|
import {NgModule} from '@angular/core';
|
|
|
|
import {RouterModule} from '@angular/router';
|
2019-10-24 09:44:29 +02:00
|
|
|
import {FreeGuard} from '../openaireLibrary/login/freeGuard.guard';
|
|
|
|
import {PreviousRouteRecorder} from '../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
|
|
|
import {MonitorComponent} from "./monitor.component";
|
2019-12-04 19:25:36 +01:00
|
|
|
import {CanExitGuard} from "../openaireLibrary/utils/can-exit.guard";
|
2019-10-24 09:44:29 +02:00
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [
|
|
|
|
RouterModule.forChild([
|
2020-06-12 19:32:41 +02:00
|
|
|
{ path: '', redirectTo: '/admin', pathMatch: 'full'},
|
2019-10-25 15:19:54 +02:00
|
|
|
{
|
|
|
|
path: ':stakeholder',
|
|
|
|
component: MonitorComponent,
|
|
|
|
canActivate: [FreeGuard],
|
2019-12-04 19:25:36 +01:00
|
|
|
canDeactivate: [PreviousRouteRecorder, CanExitGuard],
|
2019-11-27 11:09:14 +01:00
|
|
|
data: {hasHeader: false}
|
2019-10-25 15:19:54 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: ':stakeholder/:topic',
|
|
|
|
component: MonitorComponent,
|
|
|
|
canActivate: [FreeGuard],
|
2019-12-04 19:25:36 +01:00
|
|
|
canDeactivate: [PreviousRouteRecorder, CanExitGuard],
|
2019-11-27 11:09:14 +01:00
|
|
|
data: {hasHeader: false}
|
2019-10-25 15:19:54 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: ':stakeholder/:topic/:category',
|
|
|
|
component: MonitorComponent,
|
|
|
|
canActivate: [FreeGuard],
|
2019-12-04 19:25:36 +01:00
|
|
|
canDeactivate: [PreviousRouteRecorder, CanExitGuard],
|
2019-11-27 11:09:14 +01:00
|
|
|
data: {hasHeader: false}
|
2019-10-25 15:19:54 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: ':stakeholder/:topic/:category/:subCategory',
|
|
|
|
component: MonitorComponent,
|
|
|
|
canActivate: [FreeGuard],
|
2019-12-04 19:25:36 +01:00
|
|
|
canDeactivate: [PreviousRouteRecorder, CanExitGuard],
|
2019-11-27 11:09:14 +01:00
|
|
|
data: {hasHeader: false}
|
2019-10-25 15:19:54 +02:00
|
|
|
}
|
2019-10-24 09:44:29 +02:00
|
|
|
])
|
|
|
|
]
|
|
|
|
})
|
2019-10-25 15:19:54 +02:00
|
|
|
export class MonitorRoutingModule {
|
|
|
|
}
|