2019-07-21 16:59:47 +02:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { Routes, RouterModule } from '@angular/router';
|
2020-02-16 16:15:07 +01:00
|
|
|
import { StartComponent } from './components/start/start.component';
|
|
|
|
import { TransactionComponent } from './components/transaction/transaction.component';
|
|
|
|
import { BlockComponent } from './components/block/block.component';
|
|
|
|
import { AddressComponent } from './components/address/address.component';
|
|
|
|
import { MasterPageComponent } from './components/master-page/master-page.component';
|
|
|
|
import { AboutComponent } from './components/about/about.component';
|
|
|
|
import { TelevisionComponent } from './components/television/television.component';
|
|
|
|
import { StatisticsComponent } from './components/statistics/statistics.component';
|
2020-03-17 15:53:20 +01:00
|
|
|
import { MempoolBlockComponent } from './components/mempool-block/mempool-block.component';
|
2020-04-28 12:10:31 +02:00
|
|
|
import { AssetComponent } from './components/asset/asset.component';
|
2022-02-05 22:20:26 +01:00
|
|
|
import { AssetsNavComponent } from './components/assets/assets-nav/assets-nav.component';
|
2020-07-02 12:56:15 +02:00
|
|
|
import { StatusViewComponent } from './components/status-view/status-view.component';
|
2020-09-21 14:41:12 +02:00
|
|
|
import { DashboardComponent } from './dashboard/dashboard.component';
|
2020-09-22 00:51:34 +02:00
|
|
|
import { LatestBlocksComponent } from './components/latest-blocks/latest-blocks.component';
|
2021-12-01 23:01:50 +01:00
|
|
|
import { DocsComponent } from './components/docs/docs.component';
|
2020-10-11 12:23:52 +02:00
|
|
|
import { TermsOfServiceComponent } from './components/terms-of-service/terms-of-service.component';
|
2021-08-02 11:42:18 +02:00
|
|
|
import { PrivacyPolicyComponent } from './components/privacy-policy/privacy-policy.component';
|
2021-07-24 21:40:11 +02:00
|
|
|
import { TrademarkPolicyComponent } from './components/trademark-policy/trademark-policy.component';
|
2021-03-13 12:24:50 +01:00
|
|
|
import { BisqMasterPageComponent } from './components/bisq-master-page/bisq-master-page.component';
|
2021-05-18 11:23:39 +02:00
|
|
|
import { SponsorComponent } from './components/sponsor/sponsor.component';
|
2021-07-27 16:10:38 +02:00
|
|
|
import { LiquidMasterPageComponent } from './components/liquid-master-page/liquid-master-page.component';
|
2021-10-19 13:37:45 +02:00
|
|
|
import { PushTransactionComponent } from './components/push-transaction/push-transaction.component';
|
2022-01-06 11:59:33 +01:00
|
|
|
import { PoolRankingComponent } from './components/pool-ranking/pool-ranking.component';
|
2022-02-05 22:20:26 +01:00
|
|
|
import { AssetGroupComponent } from './components/assets/asset-group/asset-group.component';
|
|
|
|
import { AssetsFeaturedComponent } from './components/assets/assets-featured/assets-featured.component';
|
|
|
|
import { AssetsComponent } from './components/assets/assets.component';
|
2019-07-21 16:59:47 +02:00
|
|
|
|
2021-03-13 12:24:50 +01:00
|
|
|
let routes: Routes = [
|
2019-07-21 16:59:47 +02:00
|
|
|
{
|
|
|
|
path: '',
|
2019-07-27 17:43:17 +02:00
|
|
|
component: MasterPageComponent,
|
|
|
|
children: [
|
2021-10-19 13:37:45 +02:00
|
|
|
{
|
|
|
|
path: 'tx/push',
|
|
|
|
component: PushTransactionComponent,
|
|
|
|
},
|
2019-07-27 17:43:17 +02:00
|
|
|
{
|
|
|
|
path: '',
|
2020-02-16 16:15:07 +01:00
|
|
|
component: StartComponent,
|
2020-03-22 11:44:36 +01:00
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: '',
|
2020-09-21 14:41:12 +02:00
|
|
|
component: DashboardComponent,
|
2020-03-22 11:44:36 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'tx/:id',
|
|
|
|
component: TransactionComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'block/:id',
|
|
|
|
component: BlockComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'mempool-block/:id',
|
|
|
|
component: MempoolBlockComponent
|
|
|
|
},
|
|
|
|
],
|
2019-07-27 17:43:17 +02:00
|
|
|
},
|
2020-09-22 00:51:34 +02:00
|
|
|
{
|
|
|
|
path: 'blocks',
|
|
|
|
component: LatestBlocksComponent,
|
|
|
|
},
|
2022-01-06 11:59:33 +01:00
|
|
|
{
|
2022-01-25 10:33:46 +01:00
|
|
|
path: 'mining/pools',
|
2022-01-06 11:59:33 +01:00
|
|
|
component: PoolRankingComponent,
|
|
|
|
},
|
2019-07-27 17:43:17 +02:00
|
|
|
{
|
2020-02-16 16:15:07 +01:00
|
|
|
path: 'graphs',
|
|
|
|
component: StatisticsComponent,
|
2019-07-27 17:43:17 +02:00
|
|
|
},
|
|
|
|
{
|
2020-06-21 09:55:16 +02:00
|
|
|
path: 'about',
|
2020-02-16 16:15:07 +01:00
|
|
|
component: AboutComponent,
|
2019-07-27 17:43:17 +02:00
|
|
|
},
|
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'
|
|
|
|
},
|
2020-10-07 18:24:01 +02:00
|
|
|
{
|
|
|
|
path: 'api',
|
2021-12-01 23:01:50 +01:00
|
|
|
redirectTo: 'docs/api/rest'
|
2020-10-07 18:24:01 +02:00
|
|
|
},
|
2020-10-11 12:23:52 +02:00
|
|
|
{
|
|
|
|
path: 'terms-of-service',
|
|
|
|
component: TermsOfServiceComponent
|
|
|
|
},
|
2021-08-02 11:42:18 +02:00
|
|
|
{
|
|
|
|
path: 'privacy-policy',
|
|
|
|
component: PrivacyPolicyComponent
|
|
|
|
},
|
2021-07-24 21:40:11 +02:00
|
|
|
{
|
|
|
|
path: 'trademark-policy',
|
|
|
|
component: TrademarkPolicyComponent
|
|
|
|
},
|
2019-11-06 08:35:02 +01:00
|
|
|
{
|
2020-02-16 16:15:07 +01:00
|
|
|
path: 'address/:id',
|
|
|
|
children: [],
|
|
|
|
component: AddressComponent
|
2019-11-06 08:35:02 +01:00
|
|
|
},
|
2021-05-18 11:23:39 +02:00
|
|
|
{
|
|
|
|
path: 'sponsor',
|
|
|
|
component: SponsorComponent,
|
|
|
|
},
|
2019-07-27 17:43:17 +02:00
|
|
|
],
|
2019-07-21 16:59:47 +02:00
|
|
|
},
|
2020-05-09 15:37:50 +02:00
|
|
|
{
|
|
|
|
path: 'testnet',
|
2021-02-20 17:12:22 +01:00
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
component: MasterPageComponent,
|
|
|
|
children: [
|
2021-10-19 13:37:45 +02:00
|
|
|
{
|
|
|
|
path: 'tx/push',
|
|
|
|
component: PushTransactionComponent,
|
|
|
|
},
|
2021-02-20 17:12:22 +01:00
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
component: StartComponent,
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
component: DashboardComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'tx/:id',
|
|
|
|
component: TransactionComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'block/:id',
|
|
|
|
component: BlockComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'mempool-block/:id',
|
|
|
|
component: MempoolBlockComponent
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'blocks',
|
|
|
|
component: LatestBlocksComponent,
|
|
|
|
},
|
2022-01-25 10:33:46 +01:00
|
|
|
{
|
|
|
|
path: 'mining/pools',
|
|
|
|
component: PoolRankingComponent,
|
|
|
|
},
|
2021-02-20 17:12:22 +01:00
|
|
|
{
|
|
|
|
path: 'graphs',
|
|
|
|
component: StatisticsComponent,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'address/:id',
|
|
|
|
children: [],
|
|
|
|
component: AddressComponent
|
|
|
|
},
|
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-02-20 17:12:22 +01:00
|
|
|
{
|
|
|
|
path: 'api',
|
2021-12-01 23:01:50 +01:00
|
|
|
redirectTo: 'docs/api/rest'
|
2021-02-20 17:12:22 +01:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'tv',
|
|
|
|
component: TelevisionComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'status',
|
|
|
|
component: StatusViewComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '**',
|
|
|
|
redirectTo: ''
|
|
|
|
},
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'signet',
|
2022-01-20 17:19:16 +01:00
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
component: MasterPageComponent,
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'tx/push',
|
|
|
|
component: PushTransactionComponent,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
component: StartComponent,
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
component: DashboardComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'tx/:id',
|
|
|
|
component: TransactionComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'block/:id',
|
|
|
|
component: BlockComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'mempool-block/:id',
|
|
|
|
component: MempoolBlockComponent
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'blocks',
|
|
|
|
component: LatestBlocksComponent,
|
|
|
|
},
|
2022-01-25 10:33:46 +01:00
|
|
|
{
|
|
|
|
path: 'mining/pools',
|
|
|
|
component: PoolRankingComponent,
|
|
|
|
},
|
2022-01-20 17:19:16 +01:00
|
|
|
{
|
|
|
|
path: 'graphs',
|
|
|
|
component: StatisticsComponent,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'address/:id',
|
|
|
|
children: [],
|
|
|
|
component: AddressComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'docs/api/:type',
|
|
|
|
component: DocsComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'docs/api',
|
|
|
|
redirectTo: 'docs/api/rest'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'docs',
|
|
|
|
redirectTo: 'docs/api/rest'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'api',
|
|
|
|
redirectTo: 'docs/api/rest'
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'tv',
|
|
|
|
component: TelevisionComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'status',
|
|
|
|
component: StatusViewComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '**',
|
|
|
|
redirectTo: ''
|
|
|
|
},
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'regtest',
|
2020-05-09 15:37:50 +02:00
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: '',
|
2020-07-02 17:34:16 +02:00
|
|
|
component: MasterPageComponent,
|
2020-05-09 15:37:50 +02:00
|
|
|
children: [
|
2021-10-19 13:37:45 +02:00
|
|
|
{
|
|
|
|
path: 'tx/push',
|
|
|
|
component: PushTransactionComponent,
|
|
|
|
},
|
2020-05-09 15:37:50 +02:00
|
|
|
{
|
|
|
|
path: '',
|
2020-07-02 17:34:16 +02:00
|
|
|
component: StartComponent,
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: '',
|
2020-09-21 14:41:12 +02:00
|
|
|
component: DashboardComponent
|
2020-07-02 17:34:16 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'tx/:id',
|
|
|
|
component: TransactionComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'block/:id',
|
|
|
|
component: BlockComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'mempool-block/:id',
|
|
|
|
component: MempoolBlockComponent
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2020-09-22 00:51:34 +02:00
|
|
|
{
|
|
|
|
path: 'blocks',
|
|
|
|
component: LatestBlocksComponent,
|
|
|
|
},
|
2020-07-02 17:34:16 +02:00
|
|
|
{
|
|
|
|
path: 'graphs',
|
|
|
|
component: StatisticsComponent,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'address/:id',
|
|
|
|
children: [],
|
|
|
|
component: AddressComponent
|
2020-05-09 15:37:50 +02:00
|
|
|
},
|
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'
|
|
|
|
},
|
2020-10-07 18:24:01 +02:00
|
|
|
{
|
|
|
|
path: 'api',
|
2021-12-01 23:01:50 +01:00
|
|
|
redirectTo: 'docs/api/rest'
|
2020-10-07 18:24:01 +02:00
|
|
|
},
|
2020-05-09 15:37:50 +02:00
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
2020-07-02 17:34:16 +02:00
|
|
|
path: 'tv',
|
|
|
|
component: TelevisionComponent
|
2020-05-09 15:37:50 +02:00
|
|
|
},
|
|
|
|
{
|
2020-07-02 17:34:16 +02:00
|
|
|
path: 'status',
|
|
|
|
component: StatusViewComponent
|
2020-05-09 15:37:50 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '**',
|
|
|
|
redirectTo: ''
|
|
|
|
},
|
2020-07-02 17:34:16 +02:00
|
|
|
]
|
2020-05-09 15:37:50 +02:00
|
|
|
},
|
2019-07-21 16:59:47 +02:00
|
|
|
{
|
2019-07-27 17:43:17 +02:00
|
|
|
path: 'tv',
|
|
|
|
component: TelevisionComponent,
|
2019-07-21 16:59:47 +02:00
|
|
|
},
|
2020-05-09 15:37:50 +02:00
|
|
|
{
|
2020-07-02 17:34:16 +02:00
|
|
|
path: 'status',
|
2020-07-02 15:51:55 +02:00
|
|
|
component: StatusViewComponent
|
|
|
|
},
|
2019-07-21 16:59:47 +02:00
|
|
|
{
|
|
|
|
path: '**',
|
|
|
|
redirectTo: ''
|
2020-05-09 15:37:50 +02:00
|
|
|
},
|
2019-07-21 16:59:47 +02:00
|
|
|
];
|
2020-02-16 16:15:07 +01:00
|
|
|
|
2021-03-13 12:24:50 +01:00
|
|
|
const browserWindow = window || {};
|
|
|
|
// @ts-ignore
|
|
|
|
const browserWindowEnv = browserWindow.__env || {};
|
|
|
|
|
2021-07-27 16:10:38 +02:00
|
|
|
if (browserWindowEnv && browserWindowEnv.BASE_MODULE === 'bisq') {
|
2021-03-13 12:24:50 +01:00
|
|
|
routes = [{
|
|
|
|
path: '',
|
|
|
|
component: BisqMasterPageComponent,
|
|
|
|
loadChildren: () => import('./bisq/bisq.module').then(m => m.BisqModule)
|
|
|
|
}];
|
|
|
|
}
|
|
|
|
|
2021-07-27 16:10:38 +02:00
|
|
|
if (browserWindowEnv && browserWindowEnv.BASE_MODULE === 'liquid') {
|
|
|
|
routes = [{
|
|
|
|
path: '',
|
|
|
|
component: LiquidMasterPageComponent,
|
2021-12-27 19:54:45 +01:00
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
component: StartComponent,
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
component: DashboardComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'tx/push',
|
|
|
|
component: PushTransactionComponent,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'tx/:id',
|
|
|
|
component: TransactionComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'block/:id',
|
|
|
|
component: BlockComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'mempool-block/:id',
|
|
|
|
component: MempoolBlockComponent
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'blocks',
|
|
|
|
component: LatestBlocksComponent,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'graphs',
|
|
|
|
component: StatisticsComponent,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'address/:id',
|
|
|
|
component: AddressComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'assets',
|
2022-02-05 22:20:26 +01:00
|
|
|
component: AssetsNavComponent,
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'featured',
|
|
|
|
component: AssetsFeaturedComponent,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'all',
|
|
|
|
component: AssetsComponent,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'asset/:id',
|
|
|
|
component: AssetComponent
|
|
|
|
},
|
|
|
|
{
|
2022-02-06 16:43:57 +01:00
|
|
|
path: 'group/:id',
|
2022-02-05 22:20:26 +01:00
|
|
|
component: AssetGroupComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '**',
|
|
|
|
redirectTo: 'featured'
|
|
|
|
}
|
|
|
|
]
|
2021-12-27 19:54:45 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'docs/api/:type',
|
|
|
|
component: DocsComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'docs/api',
|
|
|
|
redirectTo: 'docs/api/rest'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'docs',
|
|
|
|
redirectTo: 'docs/api/rest'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'api',
|
|
|
|
redirectTo: 'docs/api/rest'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'about',
|
|
|
|
component: AboutComponent,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'terms-of-service',
|
|
|
|
component: TermsOfServiceComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'privacy-policy',
|
|
|
|
component: PrivacyPolicyComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'trademark-policy',
|
|
|
|
component: TrademarkPolicyComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'sponsor',
|
|
|
|
component: SponsorComponent,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'testnet',
|
2021-07-27 16:10:38 +02:00
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: '',
|
2022-01-15 20:49:08 +01:00
|
|
|
component: LiquidMasterPageComponent,
|
2021-07-27 16:10:38 +02:00
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: '',
|
2022-01-15 20:49:08 +01:00
|
|
|
component: StartComponent,
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
component: DashboardComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'tx/push',
|
|
|
|
component: PushTransactionComponent,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'tx/:id',
|
|
|
|
component: TransactionComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'block/:id',
|
|
|
|
component: BlockComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'mempool-block/:id',
|
|
|
|
component: MempoolBlockComponent
|
|
|
|
},
|
|
|
|
],
|
2021-07-27 16:10:38 +02:00
|
|
|
},
|
2021-10-19 13:37:45 +02:00
|
|
|
{
|
2022-01-15 20:49:08 +01:00
|
|
|
path: 'blocks',
|
|
|
|
component: LatestBlocksComponent,
|
2021-10-19 13:37:45 +02:00
|
|
|
},
|
2021-07-27 16:10:38 +02:00
|
|
|
{
|
2022-01-15 20:49:08 +01:00
|
|
|
path: 'graphs',
|
|
|
|
component: StatisticsComponent,
|
2021-07-27 16:10:38 +02:00
|
|
|
},
|
|
|
|
{
|
2022-01-15 20:49:08 +01:00
|
|
|
path: 'address/:id',
|
|
|
|
component: AddressComponent
|
2021-07-27 16:10:38 +02:00
|
|
|
},
|
2022-01-15 20:49:08 +01:00
|
|
|
{
|
|
|
|
path: 'assets',
|
2022-02-05 22:20:26 +01:00
|
|
|
component: AssetsNavComponent,
|
2022-02-06 15:24:15 +01:00
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'all',
|
|
|
|
component: AssetsComponent,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'asset/:id',
|
|
|
|
component: AssetComponent
|
|
|
|
},
|
|
|
|
{
|
2022-02-06 16:43:57 +01:00
|
|
|
path: 'group/:id',
|
2022-02-06 15:24:15 +01:00
|
|
|
component: AssetGroupComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '**',
|
2022-02-07 11:24:18 +01:00
|
|
|
redirectTo: 'all'
|
2022-02-06 15:24:15 +01:00
|
|
|
}
|
|
|
|
]
|
2022-01-15 20:49:08 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'docs/api/:type',
|
|
|
|
component: DocsComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'docs/api',
|
|
|
|
redirectTo: 'docs/api/rest'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'docs',
|
|
|
|
redirectTo: 'docs/api/rest'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'api',
|
|
|
|
redirectTo: 'docs/api/rest'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'about',
|
|
|
|
component: AboutComponent,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'terms-of-service',
|
|
|
|
component: TermsOfServiceComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'privacy-policy',
|
|
|
|
component: PrivacyPolicyComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'trademark-policy',
|
|
|
|
component: TrademarkPolicyComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'sponsor',
|
|
|
|
component: SponsorComponent,
|
2021-07-27 16:10:38 +02:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
2022-01-15 20:49:08 +01:00
|
|
|
path: 'tv',
|
|
|
|
component: TelevisionComponent
|
2021-07-28 21:32:13 +02:00
|
|
|
},
|
|
|
|
{
|
2022-01-15 20:49:08 +01:00
|
|
|
path: 'status',
|
|
|
|
component: StatusViewComponent
|
2021-07-28 21:32:13 +02:00
|
|
|
},
|
2022-01-15 20:49:08 +01:00
|
|
|
]
|
2021-07-27 16:10:38 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'tv',
|
|
|
|
component: TelevisionComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'status',
|
|
|
|
component: StatusViewComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '**',
|
|
|
|
redirectTo: ''
|
|
|
|
}];
|
|
|
|
}
|
|
|
|
|
2019-07-21 16:59:47 +02:00
|
|
|
@NgModule({
|
2020-11-06 22:30:52 +01:00
|
|
|
imports: [RouterModule.forRoot(routes, {
|
2021-05-11 07:15:54 +02:00
|
|
|
initialNavigation: 'enabled',
|
|
|
|
scrollPositionRestoration: 'enabled',
|
|
|
|
anchorScrolling: 'enabled'
|
2020-11-06 22:30:52 +01:00
|
|
|
})],
|
2019-07-21 16:59:47 +02:00
|
|
|
exports: [RouterModule]
|
|
|
|
})
|
|
|
|
export class AppRoutingModule { }
|
2021-12-01 23:01:50 +01:00
|
|
|
|