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