mirror of
https://github.com/mempool/mempool.git
synced 2025-02-25 07:07:36 +01:00
Always use local hostname for API examples.
This commit is contained in:
parent
d602b20f56
commit
605c1a980c
2 changed files with 2 additions and 14 deletions
|
@ -698,7 +698,7 @@
|
|||
</ng-template>
|
||||
<ng-template ngbPanelContent>
|
||||
<div class="endpoint">
|
||||
<a [href]="wrapUrl(network.val, code.mempoolRecent)" target="_blank">GET {{ baseNetworkUrl }}/api/tx/:txid</a>
|
||||
<a [href]="wrapUrl(network.val, code.transaction)" target="_blank">GET {{ baseNetworkUrl }}/api/tx/:txid</a>
|
||||
</div>
|
||||
<div class="description">
|
||||
<div class="subtitle" i18n>Description</div>
|
||||
|
|
|
@ -40,18 +40,6 @@ export class ApiDocsComponent implements OnInit {
|
|||
|
||||
this.hostname = `${document.location.protocol}//${this.hostname}`;
|
||||
|
||||
if (document.location.hostname === 'localhost') {
|
||||
if (this.env.BASE_MODULE === 'bisq') {
|
||||
this.hostname = `https://bisq.markets`;
|
||||
}
|
||||
if (this.env.BASE_MODULE === 'liquid') {
|
||||
this.hostname = `https://liquid.network`;
|
||||
}
|
||||
if (this.env.BASE_MODULE === 'mempool') {
|
||||
this.hostname = `https://mempool.space`;
|
||||
}
|
||||
}
|
||||
|
||||
this.code = {
|
||||
address: {
|
||||
codeTemplate: {
|
||||
|
@ -2063,7 +2051,7 @@ export class ApiDocsComponent implements OnInit {
|
|||
},
|
||||
transactionCpfp: {
|
||||
codeTemplate: {
|
||||
curl: `/api/fees/cpfp/%{1}`,
|
||||
curl: `/api/v1/cpfp/%{1}`,
|
||||
commonJS: `
|
||||
const { %{0}: { fees } } = mempoolJS();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue