Node and channel API
This commit is contained in:
25
frontend/src/app/lightning/lightning.routing.module.ts
Normal file
25
frontend/src/app/lightning/lightning.routing.module.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
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 { }
|
||||
Reference in New Issue
Block a user