aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/withdraw
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-10-03 10:21:24 -0700
committerAdam Soltys <[email protected]>2022-10-03 10:21:24 -0700
commit9adeba021dd5d0c4deb7eb3b8759847466f85867 (patch)
treeebae8e1984d66cac88f04177fcad1a279313aa8c /src/routes/withdraw
parentc25de65a147fec8f603c1144588c4020f8da7b1c (diff)
downloadcoinos-ui-9adeba021dd5d0c4deb7eb3b8759847466f85867.tar.gz
coinos-ui-9adeba021dd5d0c4deb7eb3b8759847466f85867.zip
migrate to new actions/cookies api
Diffstat (limited to 'src/routes/withdraw')
-rw-r--r--src/routes/withdraw/+server.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/routes/withdraw/+server.js b/src/routes/withdraw/+server.js
index cb9d177a..718707d0 100644
--- a/src/routes/withdraw/+server.js
+++ b/src/routes/withdraw/+server.js
@@ -1,8 +1,8 @@
import { auth, post } from '$lib/utils';
-export async function POST({ request }) {
+export async function POST({ cookies, request }) {
let body = await request.json();
- await post('/lightning/send', body, auth(request));
+ await post('/lightning/send', body, auth(cookies));
return new Response(JSON.stringify('ok'), { headers: { 'content-type': 'application/json' } });
}