import { Routes } from '@angular/router';
import { adminGuard } from '../../core/guards';

export const AUDIT_ROUTES: Routes = [
  {
    path: '',
    loadComponent: () =>
      import('./audit-list/audit-list.component').then((m) => m.AuditListComponent),
    canActivate: [adminGuard],
  },
  {
    path: ':entityType/:entityId',
    loadComponent: () =>
      import('./entity-trail/entity-trail.component').then((m) => m.EntityTrailComponent),
    canActivate: [adminGuard],
  },
];
