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';
|
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';
|
2021-12-01 23:01:50 +01:00
|
|
|
import { DocsComponent } from '../components/docs/docs.component';
|
2021-02-26 22:19:56 +01:00
|
|
|
import { BisqDashboardComponent } from './bisq-dashboard/bisq-dashboard.component';
|
|
|
|
import { BisqMarketComponent } from './bisq-market/bisq-market.component';
|
2021-05-11 02:15:11 +02:00
|
|
|
import { BisqMainDashboardComponent } from './bisq-main-dashboard/bisq-main-dashboard.component';
|
2021-05-12 14:07:25 +02:00
|
|
|
import { TermsOfServiceComponent } from '../components/terms-of-service/terms-of-service.component';
|
2021-10-19 13:37:45 +02:00
|
|
|
import { PushTransactionComponent } from '../components/push-transaction/push-transaction.component';
|
2020-07-03 18:45:19 +02:00
|
|
|
|
|
|
|
const routes: Routes = [
|
2021-05-11 02:15:11 +02:00
|
|
|
{
|
2021-03-05 09:38:46 +01:00
|
|
|
path: '',
|
2021-05-11 02:15:11 +02:00
|
|
|
component: BisqMainDashboardComponent,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'markets',
|
2021-03-05 09:38:46 +01:00
|
|
|
component: BisqDashboardComponent,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'transactions',
|
|
|
|
component: BisqTransactionsComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'market/:pair',
|
|
|
|
component: BisqMarketComponent,
|
|
|
|
},
|
2021-10-19 13:37:45 +02:00
|
|
|
{
|
|
|
|
path: 'tx/push',
|
|
|
|
component: PushTransactionComponent,
|
|
|
|
},
|
2021-03-05 09:38:46 +01:00
|
|
|
{
|
|
|
|
path: 'tx/:id',
|
|
|
|
component: BisqTransactionComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'blocks',
|
|
|
|
children: [],
|
|
|
|
component: BisqBlocksComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'block/:id',
|
|
|
|
component: BisqBlockComponent,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'address/:id',
|
|
|
|
component: BisqAddressComponent,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'stats',
|
|
|
|
component: BisqStatsComponent,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'about',
|
|
|
|
component: AboutComponent,
|
|
|
|
},
|
2021-12-01 23:01:50 +01:00
|
|
|
{
|
|
|
|
path: 'docs/api/:type',
|
|
|
|
component: DocsComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'docs/api',
|
|
|
|
redirectTo: 'docs/api/rest'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'docs',
|
|
|
|
redirectTo: 'docs/api/rest'
|
|
|
|
},
|
2021-03-05 09:38:46 +01:00
|
|
|
{
|
|
|
|
path: 'api',
|
2021-12-01 23:01:50 +01:00
|
|
|
redirectTo: 'docs/api/rest'
|
2021-03-05 09:38:46 +01:00
|
|
|
},
|
2021-05-12 14:07:25 +02:00
|
|
|
{
|
|
|
|
path: 'terms-of-service',
|
|
|
|
component: TermsOfServiceComponent
|
|
|
|
},
|
2021-03-05 09:38:46 +01:00
|
|
|
{
|
|
|
|
path: '**',
|
|
|
|
redirectTo: ''
|
|
|
|
}
|
2020-07-03 18:45:19 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [RouterModule.forChild(routes)],
|
|
|
|
exports: [RouterModule]
|
|
|
|
})
|
|
|
|
export class BisqRoutingModule { }
|