feat: Implement Login and Logout functionality, protect authenticated routes #12
@ -9,9 +9,14 @@ export const routes: Routes = [
|
|||||||
component: LandingPageComponent,
|
component: LandingPageComponent,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'home',
|
path: '**',
|
||||||
component: HomepageComponent,
|
|
||||||
canActivate: [authGuard],
|
canActivate: [authGuard],
|
||||||
},
|
children: [
|
||||||
|
{
|
||||||
|
path: 'home',
|
||||||
|
component: HomepageComponent,
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user