Protect homepage with keycloak
This commit is contained in:
parent
bbbf0a9473
commit
aeec61f7f0
@ -1,13 +1,17 @@
|
||||
import {Routes} from '@angular/router';
|
||||
import {LandingPageComponent} from "./landing-page/landing-page.component";
|
||||
import {HomepageComponent} from "./homepage/homepage/homepage.component";
|
||||
import {authGuard} from "./auth.guard";
|
||||
|
||||
export const routes: Routes = [
|
||||
{
|
||||
path: 'home',
|
||||
component: HomepageComponent
|
||||
path: '',
|
||||
component: LandingPageComponent,
|
||||
},
|
||||
{
|
||||
path: 'home',
|
||||
component: HomepageComponent,
|
||||
canActivate: [authGuard],
|
||||
},
|
||||
|
||||
{ path: '', component: LandingPageComponent }
|
||||
];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user