import { Routes } from '@angular/router';
import { guestGuard } from '../../core/guards/auth/guest.guard';

export const authen: Routes = [
  {
    path: 'login',
    canActivate: [guestGuard],
    loadComponent: () => import('./pages/login/login').then((m) => m.Login),
  },
  {
    path: '',
    children: [
      {
        path: '',
        loadChildren: () => import('../errors/error.routes').then((m) => m.errorRoutingModule),
      },
    ],
  },
];
