From 16e807c4b02c986bb219dccc98710fd083f5e1d9 Mon Sep 17 00:00:00 2001 From: wiz Date: Mon, 27 Sep 2021 03:49:20 +0900 Subject: [PATCH] Fix API docs curl example for `POST /api/tx` --- .../src/app/components/api-docs/code-template.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/components/api-docs/code-template.component.ts b/frontend/src/app/components/api-docs/code-template.component.ts index 417653b01..5df582399 100644 --- a/frontend/src/app/components/api-docs/code-template.component.ts +++ b/frontend/src/app/components/api-docs/code-template.component.ts @@ -284,13 +284,13 @@ yarn add @mempool/liquid.js`; if (this.env.BASE_MODULE === 'mempool') { if (this.network === 'main' || this.network === '') { if (this.method === 'post') { - return `curl POST -sSLd "${text}"`; + return `curl -X POST -sSLd "${text}"`; } return `curl -sSL "${this.hostname}${text}"`; } if (this.method === 'post') { text = text.replace('/api', `/${this.network}/api`); - return `curl POST -sSLd "${text}"`; + return `curl -X POST -sSLd "${text}"`; } return `curl -sSL "${this.hostname}/${this.network}${text}"`; }