refactor: Redirect to orginal route after login, restructure project files
This commit is contained in:
parent
29d3c53b19
commit
704cc22858
6 changed files with 20 additions and 12 deletions
|
@ -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],
|
||||
},
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue