15 lines
533 B
TypeScript
15 lines
533 B
TypeScript
import { NgModule } from '@angular/core';
|
|
import { RouterModule } from '@angular/router';
|
|
import {FreeGuard} from '../openaireLibrary/login/freeGuard.guard';
|
|
import {PreviousRouteRecorder} from '../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
|
import {MonitorComponent} from "./monitor.component";
|
|
|
|
@NgModule({
|
|
imports: [
|
|
RouterModule.forChild([
|
|
{ path: ':id', component: MonitorComponent, canActivate: [FreeGuard], canDeactivate: [PreviousRouteRecorder] }
|
|
])
|
|
]
|
|
})
|
|
export class MonitorRoutingModule { }
|