2022-08-11 17:19:12 +00:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { RouterModule, Routes } from '@angular/router';
|
|
|
|
import { NodePreviewComponent } from './node/node-preview.component';
|
2022-08-11 17:20:20 +00:00
|
|
|
import { ChannelPreviewComponent } from './channel/channel-preview.component';
|
2022-08-11 17:19:12 +00:00
|
|
|
|
|
|
|
const routes: Routes = [
|
|
|
|
{
|
|
|
|
path: 'node/:public_key',
|
|
|
|
component: NodePreviewComponent,
|
|
|
|
},
|
2022-08-11 17:20:20 +00:00
|
|
|
{
|
|
|
|
path: 'channel/:short_id',
|
|
|
|
component: ChannelPreviewComponent,
|
|
|
|
},
|
2022-08-11 17:19:12 +00:00
|
|
|
{
|
|
|
|
path: '**',
|
|
|
|
redirectTo: ''
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [RouterModule.forChild(routes)],
|
|
|
|
exports: [RouterModule]
|
|
|
|
})
|
|
|
|
export class LightningPreviewsRoutingModule { }
|