aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/invoice/+server.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-10-03 23:13:49 -0700
committerAdam Soltys <[email protected]>2022-10-03 23:13:49 -0700
commit61bd51f870143bc5050946d3a012b08708aac4d1 (patch)
treeb498ac8dd1a8ac5ffd517e6a8050399d9d7a86a1 /src/routes/invoice/+server.js
parentec87fe175c1d4c1f19c65d33bd0548f2ef4bf02c (diff)
downloadcoinos-ui-61bd51f870143bc5050946d3a012b08708aac4d1.tar.gz
coinos-ui-61bd51f870143bc5050946d3a012b08708aac4d1.zip
refactoring
Diffstat (limited to 'src/routes/invoice/+server.js')
-rw-r--r--src/routes/invoice/+server.js10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/routes/invoice/+server.js b/src/routes/invoice/+server.js
index 5b2f2b39..e69de29b 100644
--- a/src/routes/invoice/+server.js
+++ b/src/routes/invoice/+server.js
@@ -1,10 +0,0 @@
-import { auth, get, post } from '$lib/utils';
-
-export async function POST({ cookies, request }) {
- let { amount, currency, network = 'lightning', prompt, rate, tip, user } = await request.json();
- let invoice = { amount, currency, network, prompt, rate, tip };
-
- return new Response(JSON.stringify(await post('/invoice', { invoice, user }, auth(cookies))), {
- headers: { 'content-type': 'application/json' }
- });
-}