aboutsummaryrefslogtreecommitdiffstats
path: root/index.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-10-01 23:41:09 +0000
committerAdam Soltys <[email protected]>2022-10-01 23:41:10 +0000
commitb8a395859b54fd749286e2a2e6cb9f30bd75b185 (patch)
tree18698a33102474097fa4e27834e7f4787a78d473 /index.js
parentb5e85cde1015c2ffd5b25dec8f281089ff12b8d8 (diff)
downloadcoinos-server-b8a395859b54fd749286e2a2e6cb9f30bd75b185.tar.gz
coinos-server-b8a395859b54fd749286e2a2e6cb9f30bd75b185.zip
fix liquid receipts
Diffstat (limited to 'index.js')
-rw-r--r--index.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/index.js b/index.js
index 5a7a44bc..c96abe5f 100644
--- a/index.js
+++ b/index.js
@@ -28,6 +28,11 @@ if (config.lna) store.networks.push("lightning");
let host = process.env.HOST || "0.0.0.0";
let port = process.env.PORT || 3119;
+app.post('/echo', async (req, res) => {
+ console.log(req.body)
+ res.send(req.body);
+});
+
app.listen({ host, port }, (e, address) => {
e && err(e) && process.exit(1);
l(`CoinOS Server listening on ${address}`);