29 lines
1.1 KiB
TypeScript
29 lines
1.1 KiB
TypeScript
import {Routes} from '@angular/router';
|
|
|
|
// TODO: Guard pour empêcher la recherche de pages
|
|
export const routes: Routes = [
|
|
{path: '', redirectTo: '/login', pathMatch: 'full'},
|
|
{path: 'login', loadComponent: () => import('./pages/login/login.component').then(m => m.LoginComponent)},
|
|
{
|
|
path: '',
|
|
loadComponent: () => import('./components/navbar/navbar.component').then(m => m.NavbarComponent),
|
|
children: [
|
|
{
|
|
path: 'home',
|
|
loadComponent: () => import('./pages/home/home.component').then(m => m.HomeComponent)
|
|
},
|
|
{
|
|
path: 'groups',
|
|
loadComponent: () => import('./pages/publication/publication.component').then(m => m.PublicationComponent)
|
|
},
|
|
{
|
|
path: 'ranking',
|
|
loadComponent: () => import('./pages/ranking/ranking.component').then(m => m.RankingComponent)
|
|
},
|
|
{
|
|
path: 'social',
|
|
loadComponent: () => import('./pages/social/social.component').then(m => m.SocialComponent)
|
|
},
|
|
]
|
|
}
|
|
]; |