1
|
import { NgModule } from '@angular/core';
|
2
|
import {RouterModule} from '@angular/router';
|
3
|
import {PagesComponent} from "../../openaireLibrary/dashboard/page/pages.component";
|
4
|
import {IsCommunityOrAdmin} from "../../openaireLibrary/connect/communityGuard/isCommunityOrAdmin";
|
5
|
import {LoginGuard} from "../../openaireLibrary/login/loginGuard.guard";
|
6
|
|
7
|
@NgModule({
|
8
|
imports: [
|
9
|
RouterModule.forChild([
|
10
|
{ path: '', canActivate: [LoginGuard,IsCommunityOrAdmin], component: PagesComponent}
|
11
|
])
|
12
|
]
|
13
|
})
|
14
|
export class PagesRoutingModule { }
|