aboutsummaryrefslogtreecommitdiffstats
path: root/routes
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-01-22 20:05:14 -0800
committerAdam Soltys <[email protected]>2024-01-22 20:05:14 -0800
commitad6bbbd558781b9ae1c24cb67f18aaf2c7faa0aa (patch)
tree680021c17fe708529256c47e7446c6bf81949a2f /routes
parent7c6915be8c34495502f6ee21e67fc7fd02a5203d (diff)
downloadcoinos-server-ad6bbbd558781b9ae1c24cb67f18aaf2c7faa0aa.tar.gz
coinos-server-ad6bbbd558781b9ae1c24cb67f18aaf2c7faa0aa.zip
info endpoint
Diffstat (limited to 'routes')
-rw-r--r--routes/payments.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/routes/payments.js b/routes/payments.js
index ae58c14a..768307c0 100644
--- a/routes/payments.js
+++ b/routes/payments.js
@@ -22,6 +22,10 @@ import bc from "$lib/bitcoin";
import ln from "$lib/ln";
export default {
+ async info({ body, user }, res) {
+ res.send(await ln.getinfo());
+ },
+
async create({ body, user }, res) {
let { amount, hash, maxfee, fund, memo, payreq, rate, username } = body;