diff options
Diffstat (limited to 'routes')
| -rw-r--r-- | routes/payments.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/routes/payments.ts b/routes/payments.ts index 21720e17..bf3f65c0 100644 --- a/routes/payments.ts +++ b/routes/payments.ts @@ -533,4 +533,9 @@ export default { const recipient = await getUser(username); res.send(await sendInternal({ amount, sender, recipient })); }, + + async decode(req, res) { + const { bolt11 } = req.params; + res.send(await ln.decode(bolt11)); + }, }; |
