diff options
| author | Adam Soltys <[email protected]> | 2022-10-03 23:13:49 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-10-03 23:13:49 -0700 |
| commit | 63f1a6780bab85ebb48ca1fc142cc6beaf772faa (patch) | |
| tree | b498ac8dd1a8ac5ffd517e6a8050399d9d7a86a1 /src/routes/invoice/+server.js | |
| parent | 8906099f391acf19f7b8eb91527b027cedd65b5e (diff) | |
| download | coinos-ui-63f1a6780bab85ebb48ca1fc142cc6beaf772faa.tar.gz coinos-ui-63f1a6780bab85ebb48ca1fc142cc6beaf772faa.zip | |
refactoring
Diffstat (limited to 'src/routes/invoice/+server.js')
| -rw-r--r-- | src/routes/invoice/+server.js | 10 |
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' } - }); -} |
