2020-07-03 18:45:19 +02:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { RouterModule, Routes } from '@angular/router';
|
|
|
|
import { AboutComponent } from '../components/about/about.component';
|
|
|
|
import { BisqTransactionsComponent } from './bisq-transactions/bisq-transactions.component';
|
2020-07-10 19:17:13 +02:00
|
|
|
import { BisqTransactionComponent } from './bisq-transaction/bisq-transaction.component';
|
|
|
|
import { BisqBlockComponent } from './bisq-block/bisq-block.component';
|
|
|
|
import { BisqBlocksComponent } from './bisq-blocks/bisq-blocks.component';
|
|
|
|
import { BisqExplorerComponent } from './bisq-explorer/bisq-explorer.component';
|
2020-07-13 16:46:25 +02:00
|
|
|
import { BisqAddressComponent } from './bisq-address/bisq-address.component';
|
2020-07-14 09:38:52 +02:00
|
|
|
import { BisqStatsComponent } from './bisq-stats/bisq-stats.component';
|
2020-07-03 18:45:19 +02:00
|
|
|
|
|
|
|
const routes: Routes = [
|
|
|
|
{
|
|
|
|
path: '',
|
2020-07-10 19:17:13 +02:00
|
|
|
component: BisqExplorerComponent,
|
2020-07-03 18:45:19 +02:00
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
component: BisqTransactionsComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'tx/:id',
|
2020-07-10 19:17:13 +02:00
|
|
|
component: BisqTransactionComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'blocks',
|
|
|
|
children: [],
|
|
|
|
component: BisqBlocksComponent
|
2020-07-03 18:45:19 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'block/:id',
|
2020-07-10 19:17:13 +02:00
|
|
|
component: BisqBlockComponent,
|
2020-07-03 18:45:19 +02:00
|
|
|
},
|
|
|
|
{
|
2020-07-10 19:17:13 +02:00
|
|
|
path: 'address/:id',
|
2020-07-13 16:46:25 +02:00
|
|
|
component: BisqAddressComponent,
|
2020-07-03 18:45:19 +02:00
|
|
|
},
|
2020-07-14 09:38:52 +02:00
|
|
|
{
|
|
|
|
path: 'stats',
|
|
|
|
component: BisqStatsComponent,
|
|
|
|
},
|
2020-07-10 19:17:13 +02:00
|
|
|
{
|
|
|
|
path: 'about',
|
|
|
|
component: AboutComponent,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '**',
|
|
|
|
redirectTo: ''
|
|
|
|
}
|
|
|
|
]
|
2020-07-03 18:45:19 +02:00
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [RouterModule.forChild(routes)],
|
|
|
|
exports: [RouterModule]
|
|
|
|
})
|
|
|
|
export class BisqRoutingModule { }
|