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";
|
|
|
|
|
|
|
|
@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],
|
2020-07-06 11:19:01 +02:00
|
|
|
canDeactivate: [PreviousRouteRecorder]
|
2019-10-25 15:19:54 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: ':stakeholder/:topic',
|
|
|
|
component: MonitorComponent,
|
|
|
|
canActivate: [FreeGuard],
|
2020-07-06 11:19:01 +02:00
|
|
|
canDeactivate: [PreviousRouteRecorder]
|
2019-10-25 15:19:54 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: ':stakeholder/:topic/:category',
|
|
|
|
component: MonitorComponent,
|
|
|
|
canActivate: [FreeGuard],
|
2020-07-06 11:19:01 +02:00
|
|
|
canDeactivate: [PreviousRouteRecorder]
|
2019-10-25 15:19:54 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: ':stakeholder/:topic/:category/:subCategory',
|
|
|
|
component: MonitorComponent,
|
|
|
|
canActivate: [FreeGuard],
|
2020-07-06 11:19:01 +02:00
|
|
|
canDeactivate: [PreviousRouteRecorder]
|
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 {
|
|
|
|
}
|