mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
31 lines
798 B
TypeScript
31 lines
798 B
TypeScript
import { NgModule } from '@angular/core';
|
|
import { RouterModule } from '@angular/router';
|
|
import { EditBitstreamPageComponent } from './edit-bitstream-page/edit-bitstream-page.component';
|
|
import { AuthenticatedGuard } from '../core/auth/authenticated.guard';
|
|
import { BitstreamPageResolver } from './bitstream-page.resolver';
|
|
|
|
const EDIT_BITSTREAM_PATH = ':id/edit';
|
|
|
|
/**
|
|
* Routing module to help navigate Bitstream pages
|
|
*/
|
|
@NgModule({
|
|
imports: [
|
|
RouterModule.forChild([
|
|
{
|
|
path: EDIT_BITSTREAM_PATH,
|
|
component: EditBitstreamPageComponent,
|
|
resolve: {
|
|
bitstream: BitstreamPageResolver
|
|
},
|
|
canActivate: [AuthenticatedGuard]
|
|
}
|
|
])
|
|
],
|
|
providers: [
|
|
BitstreamPageResolver,
|
|
]
|
|
})
|
|
export class BitstreamPageRoutingModule {
|
|
}
|