import { Routes } from '@angular/router';
import { Users } from './users';
import { authGuard } from '../../core/guards/auth.guard';
import { roleGuard } from '../../core/guards/role.guard';

export const USERS_ROUTES: Routes = [
  {
    path: 'users',
    canActivate: [authGuard, roleGuard],
    component: Users,
    data: { 
      title: 'Gestion des Utilisateurs',
      requiredRoles: ['admin'] // pour information
    }
  }
];