mirror of
https://github.com/mempool/mempool.git
synced 2025-02-27 16:46:32 +01:00
78 lines
2.1 KiB
TypeScript
78 lines
2.1 KiB
TypeScript
import { NgModule } from '@angular/core';
|
|
import { RouterModule, Routes } from '@angular/router';
|
|
import { LightningDashboardComponent } from './lightning-dashboard/lightning-dashboard.component';
|
|
import { LightningWrapperComponent } from './lightning-wrapper/lightning-wrapper.component';
|
|
import { NodeComponent } from './node/node.component';
|
|
import { ChannelComponent } from './channel/channel.component';
|
|
import { NodesPerCountry } from './nodes-per-country/nodes-per-country.component';
|
|
import { NodesPerISP } from './nodes-per-isp/nodes-per-isp.component';
|
|
import { NodesRanking } from './nodes-ranking/nodes-ranking.component';
|
|
import { NodesRankingsDashboard } from './nodes-rankings-dashboard/nodes-rankings-dashboard.component';
|
|
|
|
const routes: Routes = [
|
|
{
|
|
path: '',
|
|
component: LightningWrapperComponent,
|
|
children: [
|
|
{
|
|
path: '',
|
|
component: LightningDashboardComponent,
|
|
},
|
|
{
|
|
path: 'node/:public_key',
|
|
component: NodeComponent,
|
|
},
|
|
{
|
|
path: 'channel/:short_id',
|
|
component: ChannelComponent,
|
|
},
|
|
{
|
|
path: 'nodes/country/:country',
|
|
component: NodesPerCountry,
|
|
},
|
|
{
|
|
path: 'nodes/isp/:isp',
|
|
component: NodesPerISP,
|
|
},
|
|
{
|
|
path: 'nodes/rankings',
|
|
component: NodesRankingsDashboard,
|
|
},
|
|
{
|
|
path: 'nodes/rankings/liquidity',
|
|
component: NodesRanking,
|
|
data: {
|
|
type: 'capacity'
|
|
},
|
|
},
|
|
{
|
|
path: 'nodes/rankings/connectivity',
|
|
component: NodesRanking,
|
|
data: {
|
|
type: 'channels'
|
|
},
|
|
},
|
|
{
|
|
path: 'nodes/oldest',
|
|
component: NodesRanking,
|
|
data: {
|
|
type: 'oldest'
|
|
},
|
|
},
|
|
{
|
|
path: '**',
|
|
redirectTo: ''
|
|
}
|
|
]
|
|
},
|
|
{
|
|
path: '**',
|
|
redirectTo: ''
|
|
}
|
|
];
|
|
|
|
@NgModule({
|
|
imports: [RouterModule.forChild(routes)],
|
|
exports: [RouterModule]
|
|
})
|
|
export class LightningRoutingModule { }
|