refactor: Redirect to orginal route after login, restructure project files

This commit is contained in:
Phan Huy Tran 2025-02-13 10:29:13 +01:00 committed by Huy
parent 29d3c53b19
commit 704cc22858
6 changed files with 20 additions and 12 deletions

View file

@ -1,16 +1,16 @@
import { Routes } from '@angular/router';
import { LandingPageComponent } from './landing-page/landing-page.component';
import { HomepageComponent } from './homepage/homepage/homepage.component';
import { LandingComponent } from './feature/landing/landing.component';
import { HomeComponent } from './feature/home/home.component';
import { authGuard } from './auth.guard';
export const routes: Routes = [
{
path: '',
component: LandingPageComponent,
component: LandingComponent,
},
{
path: 'home',
component: HomepageComponent,
component: HomeComponent,
canActivate: [authGuard],
},
];