38 lines
1.3 KiB
TypeScript
38 lines
1.3 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 {PublicComponent} from './public.component';
|
|
import {DecorationPanelComponent} from './decoration-overview/decoration-panel/decoration-panel.component';
|
|
import {TraceOverviewComponent} from './trace-overview/trace-overview.component';
|
|
import {RankPanelComponent} from './rank-overview/rank-panel/rank-panel.component';
|
|
|
|
export const publicRoutes: Routes = [
|
|
{
|
|
path: 'ranks',
|
|
component: RankOverviewComponent,
|
|
outlet: 'right'
|
|
},
|
|
{
|
|
path: 'decorations',
|
|
component: DecorationOverviewComponent,
|
|
outlet: 'right'
|
|
},
|
|
{
|
|
path: 'find/rank/:id',
|
|
component: TraceOverviewComponent,
|
|
outlet: 'right'
|
|
},
|
|
{
|
|
path: 'find/award/:id',
|
|
component: TraceOverviewComponent,
|
|
outlet: 'right'
|
|
},
|
|
];
|
|
|
|
export const pubRouterModule: ModuleWithProviders = RouterModule.forChild(publicRoutes);
|
|
|
|
export const pubRoutingComponents = [PublicComponent, RankOverviewComponent, DecorationOverviewComponent,
|
|
DecorationPanelComponent, TraceOverviewComponent, RankPanelComponent];
|
|
|