feat: nicer

This commit is contained in:
Vlad Stan
2026-07-15 22:54:52 +03:00
parent 9961c76caa
commit ad90e95b10
2 changed files with 587 additions and 171 deletions
File diff suppressed because it is too large Load Diff
+5 -2
View File
@@ -244,11 +244,14 @@ async function decodePayment(context, data) {
}) })
} }
async function lnurlScan(context, lnurl) { async function lnurlScan(context, lnurl, key) {
return jsonRequest( return jsonRequest(
context, context,
'get', 'get',
`/api/v1/lnurlscan/${encodeURIComponent(lnurl)}` `/api/v1/lnurlscan/${encodeURIComponent(lnurl)}`,
{
headers: apiKeyHeaders(key)
}
) )
} }