Files
dspace-angular/src/app/forgot-password/forgot-password-routing.module.ts
2022-03-01 15:11:25 +01:00

32 lines
972 B
TypeScript

import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { ItemPageResolver } from '../item-page/item-page.resolver';
import { ThemedForgotPasswordFormComponent } from './forgot-password-form/themed-forgot-password-form.component';
import { ThemedForgotEmailComponent } from './forgot-password-email/themed-forgot-email.component';
import { RegistrationGuard } from '../register-page/registration.guard';
@NgModule({
imports: [
RouterModule.forChild([
{
path: '',
component: ThemedForgotEmailComponent,
data: {title: 'forgot-password.title'},
},
{
path: ':token',
component: ThemedForgotPasswordFormComponent,
canActivate: [ RegistrationGuard ],
}
])
],
providers: [
ItemPageResolver,
]
})
/**
* This module defines the routing to the components related to the forgot password components.
*/
export class ForgotPasswordRoutingModule {
}