diff options
| author | Adam Soltys <[email protected]> | 2024-04-22 22:32:32 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-04-22 22:32:36 -0700 |
| commit | 1c184f2af7c6a11c779b64b936f45f3d4902c199 (patch) | |
| tree | 11d8bac2d8433eaff875a6c864efede1cf861016 /routes | |
| parent | 0fb1c0363e3f3f87b5fc67b44027a263e269fa25 (diff) | |
| download | coinos-server-1c184f2af7c6a11c779b64b936f45f3d4902c199.tar.gz coinos-server-1c184f2af7c6a11c779b64b936f45f3d4902c199.zip | |
increase max file size
Diffstat (limited to 'routes')
| -rw-r--r-- | routes/lnurl.js | 12 |
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}`, |
