ajout de la page login, changement de mot de passe forcé, rafraîchissement de session en mémoire, intercepteur, déconnexion, bouton logout sur le dashboard
14 lines
581 B
TypeScript
14 lines
581 B
TypeScript
import { Routes } from '@angular/router';
|
|
import {authGuard} from './core/guards/auth-guard';
|
|
|
|
export const routes: Routes = [
|
|
{ path: '', redirectTo: 'dashboard', pathMatch: 'full' },
|
|
{ path: 'login', loadComponent: () => import('./features/auth/login/login').then(m => m.Login) },
|
|
{ path: 'change-password', loadComponent: () => import('./features/auth/change-password/change-password').then(m => m.ChangePassword) },
|
|
{
|
|
path: 'dashboard',
|
|
canActivate: [authGuard],
|
|
loadComponent: () => import('./features/dashboard/dashboard').then(m => m.Dashboard),
|
|
},
|
|
];
|