implemented routes and error messages in login page
This commit is contained in:
+28
-2
@@ -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)
|
||||
}
|
||||
];
|
||||
Reference in New Issue
Block a user