import { NgModule } from '@angular/core';
import {RouterModule} from '@angular/router';
import {CommunitiesComponent} from './communities.component';
import {AdminLoginGuard} from '../../openaireLibrary/login/adminLoginGuard.guard';

@NgModule({
  imports: [
    RouterModule.forChild([
      { path: '', canActivate: [AdminLoginGuard], component: CommunitiesComponent}
    ])
  ]
})
export class CommunitiesRoutingModule { }
