aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/invoice.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-07-29 23:40:59 -0700
committerAdam Soltys <[email protected]>2022-07-29 23:40:59 -0700
commitb972aa21389c20ab9da1a627612bbc1dafeec366 (patch)
tree59ed2a6ec6ba65ef1fc33efebf4484d00eadfc6c /src/routes/invoice.js
parenta038ce9711f8ae5945eba073c82aa2aeb2bcf5c3 (diff)
downloadcoinos-ui-b972aa21389c20ab9da1a627612bbc1dafeec366.tar.gz
coinos-ui-b972aa21389c20ab9da1a627612bbc1dafeec366.zip
dynamic qr lib import and invoice amount param
Diffstat (limited to 'src/routes/invoice.js')
-rw-r--r--src/routes/invoice.js12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/routes/invoice.js b/src/routes/invoice.js
deleted file mode 100644
index 4b3327f6..00000000
--- a/src/routes/invoice.js
+++ /dev/null
@@ -1,12 +0,0 @@
-import { post } from '$lib/utils';
-import { invoiceAmount } from '$lib/store';
-
-const username = 'bob',
- network = 'lightning';
-
-export async function GET({ params }) {
- let { text } = await post('/lightning/invoice', { amount: invoiceAmount });
- await post('/invoice', { invoice: { text, network }, user: { username } });
-
- return { body: { text } };
-}