implemented routes and error messages in login page

This commit is contained in:
2026-03-24 23:55:53 +01:00
parent 6ec656fde1
commit 69c2991c54
19 changed files with 141 additions and 14 deletions
+28 -2
View File
@@ -1,3 +1,29 @@
import {Routes} from '@angular/router';
import { Routes } from '@angular/router';
export const routes: Routes = [];
export const routes: Routes = [
{
path: '',
pathMatch: 'full',
redirectTo: '/login'
},
{ // TODO: Guard pour empêcher la recherche de page
path: 'login',
loadComponent: () => import('./pages/login/login.component').then(x => x.LoginComponent)
},
{
path: 'home',
loadComponent: () => import('./pages/home/home.component').then(x => x.HomeComponent)
},
{
path: 'groups',
loadComponent: () => import('./pages/groups/groups.component').then(x => x.GroupsComponent)
},
{
path: 'ranking',
loadComponent: () => import('./pages/ranking/ranking.component').then(x => x.RankingComponent)
},
{
path: 'social',
loadComponent: () => import('./pages/social/social.component').then(x => x.SocialComponent)
}
];