mempool/frontend/src/app/lightning/lightning.routing.module.ts

60 lines
1.6 KiB
TypeScript
Raw Normal View History

2022-04-29 03:57:27 +04:00
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { LightningDashboardComponent } from './lightning-dashboard/lightning-dashboard.component';
2022-05-06 16:31:25 +04:00
import { LightningWrapperComponent } from './lightning-wrapper/lightning-wrapper.component';
2022-04-29 03:57:27 +04:00
import { NodeComponent } from './node/node.component';
2022-05-01 03:01:27 +04:00
import { ChannelComponent } from './channel/channel.component';
2022-07-16 15:56:36 +02:00
import { NodesPerCountry } from './nodes-per-country/nodes-per-country.component';
2022-07-17 22:57:29 +02:00
import { NodesPerISP } from './nodes-per-isp/nodes-per-isp.component';
2022-08-17 12:53:26 +02:00
import { NodesRanking } from './nodes-ranking/nodes-ranking.component';
2022-04-29 03:57:27 +04:00
const routes: Routes = [
{
path: '',
2022-05-06 16:31:25 +04:00
component: LightningWrapperComponent,
children: [
{
path: '',
component: LightningDashboardComponent,
},
{
path: 'node/:public_key',
component: NodeComponent,
},
{
path: 'channel/:short_id',
component: ChannelComponent,
},
2022-07-16 15:56:36 +02:00
{
path: 'nodes/country/:country',
component: NodesPerCountry,
},
2022-07-17 22:57:29 +02:00
{
path: 'nodes/isp/:isp',
component: NodesPerISP,
},
2022-08-17 12:53:26 +02:00
{
path: 'nodes/top-capacity',
2022-08-17 12:53:26 +02:00
component: NodesRanking,
data: {
type: 'capacity'
},
2022-08-17 12:53:26 +02:00
},
2022-05-06 16:31:25 +04:00
{
path: '**',
redirectTo: ''
}
]
2022-05-01 03:01:27 +04:00
},
2022-04-29 03:57:27 +04:00
{
path: '**',
redirectTo: ''
}
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule]
})
export class LightningRoutingModule { }