32 lines
1.2 KiB
TypeScript
32 lines
1.2 KiB
TypeScript
import {RouterModule, Routes} from '@angular/router';
|
|
import {RankOverviewComponent} from './rank-overview/rank-overview.component';
|
|
import {ModuleWithProviders} from '@angular/core';
|
|
import {DecorationOverviewComponent} from './decoration-overview/decoration-overview.component';
|
|
import {DecorationPanelComponent} from './decoration-overview/decoration-panel/decoration-panel.component';
|
|
import {RankPanelComponent} from './rank-overview/rank-panel/rank-panel.component';
|
|
import {UserListSheetComponent} from './user-list-sheet/user-list-sheet.component';
|
|
import {PublicComponent} from './public.component';
|
|
import {StatisticComponent} from '../statistic/stats.component';
|
|
|
|
export const publicRoutes: Routes = [
|
|
{
|
|
path: '',
|
|
component: PublicComponent,
|
|
children: [
|
|
{
|
|
path: 'ranks',
|
|
component: RankOverviewComponent,
|
|
},
|
|
{
|
|
path: 'decorations',
|
|
component: DecorationOverviewComponent,
|
|
},
|
|
]
|
|
},
|
|
];
|
|
|
|
export const pubRouterModule: ModuleWithProviders = RouterModule.forChild(publicRoutes);
|
|
|
|
export const pubRoutingComponents = [PublicComponent, RankOverviewComponent, DecorationOverviewComponent, DecorationPanelComponent,
|
|
RankPanelComponent, UserListSheetComponent];
|