diff options
Diffstat (limited to 'routes')
| -rw-r--r-- | routes/payments.js | 4 |
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; |
