aboutsummaryrefslogtreecommitdiffstats
path: root/index.js
diff options
context:
space:
mode:
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}`);