mirror of
https://github.com/mempool/mempool.git
synced 2025-02-28 16:58:32 +01:00
35 lines
952 B
TypeScript
35 lines
952 B
TypeScript
import { NgModule } from '@angular/core';
|
|
import { RouterModule, Routes } from '@angular/router';
|
|
import { NodePreviewComponent } from './node/node-preview.component';
|
|
import { ChannelPreviewComponent } from './channel/channel-preview.component';
|
|
import { NodesPerISPPreview } from './nodes-per-isp/nodes-per-isp-preview.component';
|
|
import { GroupPreviewComponent } from './group/group-preview.component';
|
|
|
|
const routes: Routes = [
|
|
{
|
|
path: 'node/:public_key',
|
|
component: NodePreviewComponent,
|
|
},
|
|
{
|
|
path: 'channel/:short_id',
|
|
component: ChannelPreviewComponent,
|
|
},
|
|
{
|
|
path: 'nodes/isp/:isp',
|
|
component: NodesPerISPPreview,
|
|
},
|
|
{
|
|
path: 'group/:slug',
|
|
component: GroupPreviewComponent,
|
|
},
|
|
{
|
|
path: '**',
|
|
redirectTo: ''
|
|
}
|
|
];
|
|
|
|
@NgModule({
|
|
imports: [RouterModule.forChild(routes)],
|
|
exports: [RouterModule]
|
|
})
|
|
export class LightningPreviewsRoutingModule { }
|