55693: Authentication Guard and TSDocs

This commit is contained in:
Kristof De Langhe
2018-10-01 14:14:26 +02:00
parent 5f56d5959d
commit 24f6f982e9
3 changed files with 77 additions and 1 deletions

View File

@@ -4,6 +4,7 @@ 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: [
@@ -22,7 +23,8 @@ import { CollectionItemMapperComponent } from './collection-item-mapper/collecti
pathMatch: 'full',
resolve: {
collection: CollectionPageResolver
}
},
canActivate: [AuthenticatedGuard]
}
])
],