Add nested route config for authentication

This commit is contained in:
Phan Huy Tran 2025-02-12 09:41:05 +01:00
parent ec0758715d
commit 7505023957

View File

@ -8,10 +8,15 @@ export const routes: Routes = [
path: '',
component: LandingPageComponent,
},
{
path: '**',
canActivate: [authGuard],
children: [
{
path: 'home',
component: HomepageComponent,
canActivate: [authGuard],
},
]
}
];