1 |
50428
|
argiro.kok
|
import { NgModule } from '@angular/core';
|
2 |
|
|
import { RouterModule } from '@angular/router';
|
3 |
|
|
|
4 |
|
|
import { OpenaireDepositBySubjectResultComponent } from './depositBySubjectResult.component';
|
5 |
50763
|
argiro.kok
|
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
|
6 |
|
|
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
7 |
|
|
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard';
|
8 |
51407
|
argiro.kok
|
|
9 |
50428
|
argiro.kok
|
@NgModule({
|
10 |
|
|
imports: [
|
11 |
|
|
RouterModule.forChild([
|
12 |
|
|
{ path: '', component: OpenaireDepositBySubjectResultComponent, canActivate: [FreeGuard, IsRouteEnabled], data: {
|
13 |
51407
|
argiro.kok
|
redirect: '/error'
|
14 |
50428
|
argiro.kok
|
},canDeactivate: [PreviousRouteRecorder] }
|
15 |
|
|
|
16 |
|
|
])
|
17 |
|
|
]
|
18 |
|
|
})
|
19 |
|
|
export class DepositBySubjectResultsRoutingModule { }
|