import { Routes } from '@angular/router'
import { Login } from '@/app/modules/auth/login'
import { Logout } from '@/app/modules/auth/logout'
import { ResetPassword } from '@/app/modules/auth/reset-password'
import { NewPassword } from '@/app/modules/auth/new-password'
import { publicGuard } from '@core/guards/public.guard';

export const AUTH_ROUTES: Routes = [
  {
    path: 'login',
    component: Login,
    canActivate: [publicGuard],
    data: {
      title: 'Connexion - DCB',
      module: 'auth'
    }
  },
  {
    path: 'reset-password',
    component: ResetPassword,
    title: 'Réinitialisation Mot de Passe - DCB',
    canActivate: [publicGuard],
    data: {
      title: 'Réinitialisation Mot de Passe - DCB',
      module: 'auth'
    }
  },
  {
    path: 'forgot-password',
    component: NewPassword,
    canActivate: [publicGuard],
    data: {
      title: 'Mot de Passe Oublié - DCB',
      module: 'auth'
    }
  },
  {
    path: 'logout',
    component: Logout,
    data: {
      title: 'Déconnexion - DCB',
      module: 'auth'
    }
  }
];