2018-01-26 16:00:07 +01:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { RouterModule } from '@angular/router';
|
|
|
|
|
|
|
|
import{OpenaireSearchComponent} from './search.component';
|
2019-07-02 13:22:38 +02:00
|
|
|
import {FreeGuard} from "../../openaireLibrary/login/freeGuard.guard";
|
|
|
|
import {PreviousRouteRecorder} from "../../openaireLibrary/utils/piwik/previousRouteRecorder.guard";
|
2018-01-26 16:00:07 +01:00
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [
|
|
|
|
RouterModule.forChild([
|
2019-07-02 13:22:38 +02:00
|
|
|
// { path: '', component: OpenaireSearchComponent }
|
2020-07-14 00:56:30 +02:00
|
|
|
{ path: '', component: OpenaireSearchComponent, canActivate: [FreeGuard], canDeactivate: [PreviousRouteRecorder] }
|
2018-01-26 16:00:07 +01:00
|
|
|
|
|
|
|
])
|
|
|
|
]
|
|
|
|
})
|
|
|
|
export class MainSearchRoutingModule { }
|