import {NgModule} from '@angular/core';
import {RouterModule} from '@angular/router';
import {PreviousRouteRecorder} from '../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
import {AdminDashboardGuard} from "../utils/adminDashboard.guard";
import {UsersComponent} from "./users.component";

@NgModule({
  imports: [
    RouterModule.forChild([
      {
        path: '',
        component: UsersComponent,
        canActivate: [AdminDashboardGuard],
        canDeactivate: [PreviousRouteRecorder]
      }
    ])
  ]
})
export class UsersRoutingModule {
}
