1
|
import { NgModule } from '@angular/core';
|
2
|
import { RouterModule } from '@angular/router';
|
3
|
|
4
|
import {OpenaireMyClaimsComponent } from './myClaims.component';
|
5
|
import {LoginGuard} from '../../openaireLibrary/login/loginGuard.guard';
|
6
|
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
7
|
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard';
|
8
|
|
9
|
@NgModule({
|
10
|
imports: [
|
11
|
RouterModule.forChild([
|
12
|
{ path: '', component: OpenaireMyClaimsComponent, canActivate: [IsRouteEnabled, LoginGuard],
|
13
|
data: {redirect: '/error' }, canDeactivate: [PreviousRouteRecorder]}])
|
14
|
]
|
15
|
})
|
16
|
export class MyClaimsRoutingModule { }
|