|
@ -1,10 +1,7 @@ |
|
|
import { HomeHoldingsComponent } from '@ghostfolio/client/components/home-holdings/home-holdings.component'; |
|
|
import { HomeHoldingsComponent } from '@ghostfolio/client/components/home-holdings/home-holdings.component'; |
|
|
import { HomeOverviewComponent } from '@ghostfolio/client/components/home-overview/home-overview.component'; |
|
|
import { HomeOverviewComponent } from '@ghostfolio/client/components/home-overview/home-overview.component'; |
|
|
import { AuthGuard } from '@ghostfolio/client/core/auth.guard'; |
|
|
import { AuthGuard } from '@ghostfolio/client/core/auth.guard'; |
|
|
import { |
|
|
import { internalRoutes } from '@ghostfolio/common/routes'; |
|
|
routes as ghostfolioRoutes, |
|
|
|
|
|
internalRoutes |
|
|
|
|
|
} from '@ghostfolio/common/routes'; |
|
|
|
|
|
|
|
|
|
|
|
import { NgModule } from '@angular/core'; |
|
|
import { NgModule } from '@angular/core'; |
|
|
import { RouterModule, Routes } from '@angular/router'; |
|
|
import { RouterModule, Routes } from '@angular/router'; |
|
@ -15,8 +12,15 @@ const routes: Routes = [ |
|
|
{ |
|
|
{ |
|
|
canActivate: [AuthGuard], |
|
|
canActivate: [AuthGuard], |
|
|
children: [ |
|
|
children: [ |
|
|
{ path: '', component: HomeOverviewComponent }, |
|
|
{ |
|
|
{ path: ghostfolioRoutes.holdings, component: HomeHoldingsComponent } |
|
|
path: '', |
|
|
|
|
|
component: HomeOverviewComponent |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
path: internalRoutes.zen.subRoutes.holdings.path, |
|
|
|
|
|
component: HomeHoldingsComponent, |
|
|
|
|
|
title: internalRoutes.home.subRoutes.holdings.title |
|
|
|
|
|
} |
|
|
], |
|
|
], |
|
|
component: ZenPageComponent, |
|
|
component: ZenPageComponent, |
|
|
path: '', |
|
|
path: '', |
|
|