aboutsummaryrefslogtreecommitdiffstats
path: root/routes
diff options
context:
space:
mode:
Diffstat (limited to 'routes')
-rw-r--r--routes/lnurl.js12
1 files changed, 9 insertions, 3 deletions
diff --git a/routes/lnurl.js b/routes/lnurl.js
index 2a8f5564..ea99d488 100644
--- a/routes/lnurl.js
+++ b/routes/lnurl.js
@@ -46,7 +46,13 @@ export default {
}
},
- async lnurlp({ params: { username } }, res) {
+ async lnurlp(
+ {
+ params: { username },
+ query: { minSendable = 1000, maxSendable = 100000000000 },
+ },
+ res,
+ ) {
try {
let { id: uid, pubkey: nostrPubkey } = await getUser(username);
@@ -60,8 +66,8 @@ export default {
res.send({
allowsNostr: true,
- minSendable: 1000,
- maxSendable: 100000000000,
+ minSendable,
+ maxSendable,
metadata,
nostrPubkey,
callback: `${URL}/api/lnurl/${id}`,