monitor-dashboard/src/app/portals/portals-routing.module.ts

14 lines
453 B
TypeScript
Raw Normal View History

import { NgModule } from '@angular/core';
import {RouterModule} from '@angular/router';
import {CommunitiesComponent} from "../openaireLibrary/dashboard/portal/communities.component";
import {AdminLoginGuard} from "../openaireLibrary/login/adminLoginGuard.guard";
@NgModule({
imports: [
RouterModule.forChild([
{ path: '', canActivate: [AdminLoginGuard], component: CommunitiesComponent}
])
]
})
export class PortalsRoutingModule { }