From 605c1a980cf76e708c895e9d86cbfcbe78aa958c Mon Sep 17 00:00:00 2001 From: softsimon Date: Sun, 19 Sep 2021 13:17:11 +0400 Subject: [PATCH] Always use local hostname for API examples. --- .../components/api-docs/api-docs.component.html | 2 +- .../app/components/api-docs/api-docs.component.ts | 14 +------------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/frontend/src/app/components/api-docs/api-docs.component.html b/frontend/src/app/components/api-docs/api-docs.component.html index 441ce1838..5d3d4a076 100644 --- a/frontend/src/app/components/api-docs/api-docs.component.html +++ b/frontend/src/app/components/api-docs/api-docs.component.html @@ -698,7 +698,7 @@
Description
diff --git a/frontend/src/app/components/api-docs/api-docs.component.ts b/frontend/src/app/components/api-docs/api-docs.component.ts index 37b0244c0..ce5f9ff13 100644 --- a/frontend/src/app/components/api-docs/api-docs.component.ts +++ b/frontend/src/app/components/api-docs/api-docs.component.ts @@ -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();