Fix url for mempool post endpoint

This commit is contained in:
hunicus 2022-02-08 17:51:19 -05:00
parent bb6a22192c
commit ac21c47540
No known key found for this signature in database
GPG Key ID: 24837C51B6D81FD9

View File

@ -302,7 +302,6 @@ yarn add @mempool/liquid.js`;
return `curl -sSL "${this.hostname}${text}"`;
}
if (this.method === 'POST') {
text = text.replace('/api', `/${this.network}/api`);
return `curl -X POST -sSLd "${text}"`;
}
return `curl -sSL "${this.hostname}/${this.network}${text}"`;