mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
38 lines
1.0 KiB
TypeScript
38 lines
1.0 KiB
TypeScript
import { NgModule } from '@angular/core';
|
|
import { RouterModule } from '@angular/router';
|
|
import { BitstreamFormatsResolver } from './bitstream-formats.resolver';
|
|
import { EditBitstreamFormatComponent } from './edit-bitstream-format/edit-bitstream-format.component';
|
|
import { BitstreamFormatsComponent } from './bitstream-formats.component';
|
|
import { AddBitstreamFormatComponent } from './add-bitstream-format/add-bitstream-format.component';
|
|
|
|
const BITSTREAMFORMAT_EDIT_PATH = ':id/edit';
|
|
const BITSTREAMFORMAT_ADD_PATH = 'add';
|
|
|
|
@NgModule({
|
|
imports: [
|
|
RouterModule.forChild([
|
|
{
|
|
path: '',
|
|
component: BitstreamFormatsComponent
|
|
},
|
|
{
|
|
path: BITSTREAMFORMAT_ADD_PATH,
|
|
component: AddBitstreamFormatComponent,
|
|
},
|
|
{
|
|
path: BITSTREAMFORMAT_EDIT_PATH,
|
|
component: EditBitstreamFormatComponent,
|
|
resolve: {
|
|
bitstreamFormat: BitstreamFormatsResolver
|
|
}
|
|
},
|
|
])
|
|
],
|
|
providers: [
|
|
BitstreamFormatsResolver,
|
|
]
|
|
})
|
|
export class BitstreamFormatsRoutingModule {
|
|
|
|
}
|