Fix API docs curl example for POST /api/tx

This commit is contained in:
wiz 2021-09-27 03:49:20 +09:00
parent 86c877c8e9
commit 16e807c4b0
No known key found for this signature in database
GPG Key ID: A394E332255A6173

View File

@ -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}"`;
}