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.
44 lines
1.3 KiB
44 lines
1.3 KiB
import { AuthGuard } from '@ghostfolio/client/core/auth.guard';
|
|
import { publicRoutes } from '@ghostfolio/common/routes/routes';
|
|
|
|
import { Routes } from '@angular/router';
|
|
|
|
import { ResourcesPageComponent } from './resources-page.component';
|
|
|
|
export const routes: Routes = [
|
|
{
|
|
canActivate: [AuthGuard],
|
|
component: ResourcesPageComponent,
|
|
children: [
|
|
{
|
|
path: '',
|
|
loadChildren: () =>
|
|
import('./overview/resources-overview.routes').then((m) => m.routes)
|
|
},
|
|
{
|
|
path: publicRoutes.resources.subRoutes.glossary.path,
|
|
loadChildren: () =>
|
|
import('./glossary/resources-glossary.routes').then((m) => m.routes)
|
|
},
|
|
{
|
|
path: publicRoutes.resources.subRoutes.guides.path,
|
|
loadChildren: () =>
|
|
import('./guides/resources-guides.routes').then((m) => m.routes)
|
|
},
|
|
{
|
|
path: publicRoutes.resources.subRoutes.markets.path,
|
|
loadChildren: () =>
|
|
import('./markets/resources-markets.routes').then((m) => m.routes)
|
|
},
|
|
{
|
|
path: publicRoutes.resources.subRoutes.personalFinanceTools.path,
|
|
loadChildren: () =>
|
|
import('./personal-finance-tools/personal-finance-tools-page.routes').then(
|
|
(m) => m.routes
|
|
)
|
|
}
|
|
],
|
|
path: '',
|
|
title: publicRoutes.resources.title
|
|
}
|
|
];
|
|
|