aboutsummaryrefslogtreecommitdiffstats
path: root/lib/send.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2021-01-13 22:31:48 -0800
committerAdam Soltys <[email protected]>2021-01-13 22:31:48 -0800
commitb605dd257984d3384c680de2cf64e44bfd3484ca (patch)
tree17b6f26bc981ac6a3ace0aaabb809fe4d0d1061c /lib/send.js
parent5cd96cc027be811116b147e0614aca39ce164c6b (diff)
downloadcoinos-server-b605dd257984d3384c680de2cf64e44bfd3484ca.tar.gz
coinos-server-b605dd257984d3384c680de2cf64e44bfd3484ca.zip
disable insecure endpoints
Diffstat (limited to 'lib/send.js')
-rw-r--r--lib/send.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/send.js b/lib/send.js
index b4fc9ac9..733c3cfb 100644
--- a/lib/send.js
+++ b/lib/send.js
@@ -1,6 +1,7 @@
const bolt11 = require("bolt11");
send = async (amount, memo, hash, user) => {
+ return res.status(500).send("Internal payments are temporarily disabled");
let payreq = bolt11.decode(hash);
if (!amount) amount = payreq.satoshis;