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

31 lines
755 B
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';
import { NodeComponent } from './node/node.component';
2022-05-01 03:01:27 +04:00
import { ChannelComponent } from './channel/channel.component';
2022-04-29 03:57:27 +04:00
const routes: Routes = [
{
path: '',
component: LightningDashboardComponent,
},
{
path: 'node/:public_key',
component: NodeComponent,
},
2022-05-01 03:01:27 +04:00
{
path: 'channel/:short_id',
component: ChannelComponent,
},
2022-04-29 03:57:27 +04:00
{
path: '**',
redirectTo: ''
}
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule]
})
export class LightningRoutingModule { }