diff options
| author | Adam Soltys <[email protected]> | 2024-01-22 20:05:14 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-01-22 20:05:14 -0800 |
| commit | ad6bbbd558781b9ae1c24cb67f18aaf2c7faa0aa (patch) | |
| tree | 680021c17fe708529256c47e7446c6bf81949a2f /routes | |
| parent | 7c6915be8c34495502f6ee21e67fc7fd02a5203d (diff) | |
| download | coinos-server-ad6bbbd558781b9ae1c24cb67f18aaf2c7faa0aa.tar.gz coinos-server-ad6bbbd558781b9ae1c24cb67f18aaf2c7faa0aa.zip | |
info endpoint
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; |
