mirror of
https://github.com/mempool/mempool.git
synced 2025-02-27 16:46:32 +01:00
26 lines
610 B
TypeScript
26 lines
610 B
TypeScript
|
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';
|
||
|
|
||
|
const routes: Routes = [
|
||
|
{
|
||
|
path: '',
|
||
|
component: LightningDashboardComponent,
|
||
|
},
|
||
|
{
|
||
|
path: 'node/:public_key',
|
||
|
component: NodeComponent,
|
||
|
},
|
||
|
{
|
||
|
path: '**',
|
||
|
redirectTo: ''
|
||
|
}
|
||
|
];
|
||
|
|
||
|
@NgModule({
|
||
|
imports: [RouterModule.forChild(routes)],
|
||
|
exports: [RouterModule]
|
||
|
})
|
||
|
export class LightningRoutingModule { }
|