explore-services/explore/src/app/deposit/deposit-routing.module.ts

19 lines
682 B
TypeScript
Raw Normal View History

import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { OpenaireDepositComponent } from './deposit.component';
import {PreviousRouteRecorder} from '../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
import {IsRouteEnabled} from '../openaireLibrary/error/isRouteEnabled.guard'
2022-05-12 11:25:10 +02:00
import {properties} from "../../environments/environment";
@NgModule({
imports: [
RouterModule.forChild([
{ path: '', component: OpenaireDepositComponent, canActivate: [IsRouteEnabled], data: {
2022-05-12 11:25:10 +02:00
redirect: properties.errorLink
}, canDeactivate: [PreviousRouteRecorder] }
])
]
})
export class DepositRoutingModule { }