mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-17 15:03:07 +00:00
54472: Authorization + tests (intermediate)
This commit is contained in:
@@ -3,11 +3,12 @@ import { RouterModule } from '@angular/router';
|
||||
|
||||
import { CollectionPageComponent } from './collection-page.component';
|
||||
import { CreateCollectionPageComponent } from './create-collection-page/create-collection-page.component';
|
||||
import { AuthenticatedGuard } from '../core/auth/authenticated.guard';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
RouterModule.forChild([
|
||||
{ path: 'create', component: CreateCollectionPageComponent },
|
||||
{ path: 'create', component: CreateCollectionPageComponent, canActivate: [AuthenticatedGuard] },
|
||||
{ path: ':id', component: CollectionPageComponent, pathMatch: 'full' }
|
||||
])
|
||||
]
|
||||
|
Reference in New Issue
Block a user