diff options
| author | Adam Soltys <[email protected]> | 2024-09-18 12:29:20 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-09-18 12:29:20 -0700 |
| commit | 0b2f9a963ed2503ac611eab3d8bd5b640ebe08f2 (patch) | |
| tree | d6d41e5cedf76835dd491928ee0b58ede03a0fd6 /routes | |
| parent | c28a1b61881c34fcc1228d4600f5bb4aa0b81b53 (diff) | |
| download | coinos-server-0b2f9a963ed2503ac611eab3d8bd5b640ebe08f2.tar.gz coinos-server-0b2f9a963ed2503ac611eab3d8bd5b640ebe08f2.zip | |
refactor nwc
Diffstat (limited to 'routes')
| -rw-r--r-- | routes/lnurl.ts | 4 | ||||
| -rw-r--r-- | routes/nostr.ts | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/routes/lnurl.ts b/routes/lnurl.ts index 5a9c0990..59fc6ba1 100644 --- a/routes/lnurl.ts +++ b/routes/lnurl.ts @@ -6,7 +6,7 @@ import got from "got"; import { generate } from "$lib/invoices"; import { bech32 } from "bech32"; import { types } from "$lib/payments"; -import { COINOS_PUBKEY } from "$lib/nostr"; +import { serverPubkey } from "$lib/nostr"; let { URL } = process.env; let host = URL.split("/").at(-1); @@ -68,7 +68,7 @@ export default { minSendable, maxSendable, metadata, - nostrPubkey: COINOS_PUBKEY, + nostrPubkey: serverPubkey, callback: `${URL}/api/lnurl/${id}`, tag: "payRequest", }); diff --git a/routes/nostr.ts b/routes/nostr.ts index 51b4e1ea..9bbff33d 100644 --- a/routes/nostr.ts +++ b/routes/nostr.ts @@ -1,6 +1,6 @@ import { bail, nada, getUser, uniq } from "$lib/utils"; import { g, db } from "$lib/db"; -import { pool, q, COINOS_PUBKEY } from "$lib/nostr"; +import { pool, q, serverPubkey } from "$lib/nostr"; export default { async event(req, res) { @@ -226,6 +226,6 @@ export default { }, async info(_, res) { - res.send({ pubkey: COINOS_PUBKEY }); + res.send({ pubkey: serverPubkey }); }, }; |
