import { Routes } from '@angular/router'
import { SignIn } from '@/app/modules/auth/sign-in'
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: 'sign-in',
    component: SignIn,
    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',
    redirectTo: 'sign-in',
    data: { module: 'auth' }
  }
];