mirror of https://github.com/ghostfolio/ghostfolio
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.9 KiB
53 lines
1.9 KiB
import { HomeHoldingsComponent } from '@ghostfolio/client/components/home-holdings/home-holdings.component';
|
|
import { HomeMarketComponent } from '@ghostfolio/client/components/home-market/home-market.component';
|
|
import { HomeOverviewComponent } from '@ghostfolio/client/components/home-overview/home-overview.component';
|
|
import { HomeSummaryComponent } from '@ghostfolio/client/components/home-summary/home-summary.component';
|
|
import { HomeWatchlistComponent } from '@ghostfolio/client/components/home-watchlist/home-watchlist.component';
|
|
import { AuthGuard } from '@ghostfolio/client/core/auth.guard';
|
|
import { internalRoutes } from '@ghostfolio/common/routes/routes';
|
|
|
|
import { NgModule } from '@angular/core';
|
|
import { RouterModule, Routes } from '@angular/router';
|
|
|
|
import { HomePageComponent } from './home-page.component';
|
|
|
|
const routes: Routes = [
|
|
{
|
|
canActivate: [AuthGuard],
|
|
children: [
|
|
{
|
|
path: '',
|
|
component: HomeOverviewComponent
|
|
},
|
|
{
|
|
path: internalRoutes.home.subRoutes.holdings.path,
|
|
component: HomeHoldingsComponent,
|
|
title: internalRoutes.home.subRoutes.holdings.title
|
|
},
|
|
{
|
|
path: internalRoutes.home.subRoutes.summary.path,
|
|
component: HomeSummaryComponent,
|
|
title: internalRoutes.home.subRoutes.summary.title
|
|
},
|
|
{
|
|
path: internalRoutes.home.subRoutes.markets.path,
|
|
component: HomeMarketComponent,
|
|
title: internalRoutes.home.subRoutes.markets.title
|
|
},
|
|
{
|
|
path: internalRoutes.home.subRoutes.watchlist.path,
|
|
component: HomeWatchlistComponent,
|
|
title: internalRoutes.home.subRoutes.watchlist.title
|
|
}
|
|
],
|
|
component: HomePageComponent,
|
|
path: '',
|
|
title: internalRoutes.home.title
|
|
}
|
|
];
|
|
|
|
@NgModule({
|
|
imports: [RouterModule.forChild(routes)],
|
|
exports: [RouterModule]
|
|
})
|
|
export class HomePageRoutingModule {}
|
|
|