mirror of https://github.com/ghostfolio/ghostfolio
3 changed files with 4 additions and 35 deletions
@ -1,30 +0,0 @@ |
|||||
import { internalRoutes } from '@ghostfolio/common/routes/routes'; |
|
||||
|
|
||||
import { Routes } from '@angular/router'; |
|
||||
|
|
||||
import { GfHomeHoldingsComponent } from '../../components/home-holdings/home-holdings.component'; |
|
||||
import { GfHomeOverviewComponent } from '../../components/home-overview/home-overview.component'; |
|
||||
import { AuthGuard } from '../../core/auth.guard'; |
|
||||
import { ZenPageComponent } from './zen-page.component'; |
|
||||
|
|
||||
const routes: Routes = [ |
|
||||
{ |
|
||||
canActivate: [AuthGuard], |
|
||||
children: [ |
|
||||
{ |
|
||||
path: '', |
|
||||
component: GfHomeOverviewComponent |
|
||||
}, |
|
||||
{ |
|
||||
path: internalRoutes.zen.subRoutes.holdings.path, |
|
||||
component: GfHomeHoldingsComponent, |
|
||||
title: internalRoutes.home.subRoutes.holdings.title |
|
||||
} |
|
||||
], |
|
||||
component: ZenPageComponent, |
|
||||
path: '', |
|
||||
title: internalRoutes.zen.title |
|
||||
} |
|
||||
]; |
|
||||
|
|
||||
export { routes }; |
|
||||
Loading…
Reference in new issue