mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
38 lines
992 B
TypeScript
38 lines
992 B
TypeScript
import { NgModule } from '@angular/core';
|
|
import { RouterModule } from '@angular/router';
|
|
|
|
import { CollectionPageComponent } from './collection-page.component';
|
|
import { CollectionPageResolver } from './collection-page.resolver';
|
|
import { CollectionItemMapperComponent } from './collection-item-mapper/collection-item-mapper.component';
|
|
import { AuthenticatedGuard } from '../core/auth/authenticated.guard';
|
|
|
|
@NgModule({
|
|
imports: [
|
|
RouterModule.forChild([
|
|
{
|
|
path: ':id',
|
|
component: CollectionPageComponent,
|
|
pathMatch: 'full',
|
|
resolve: {
|
|
collection: CollectionPageResolver
|
|
}
|
|
},
|
|
{
|
|
path: ':id/mapper',
|
|
component: CollectionItemMapperComponent,
|
|
pathMatch: 'full',
|
|
resolve: {
|
|
collection: CollectionPageResolver
|
|
},
|
|
canActivate: [AuthenticatedGuard]
|
|
}
|
|
])
|
|
],
|
|
providers: [
|
|
CollectionPageResolver,
|
|
]
|
|
})
|
|
export class CollectionPageRoutingModule {
|
|
|
|
}
|