aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/withdraw.js
diff options
context:
space:
mode:
authorAdrien Hopkins <[email protected]>2022-08-08 07:42:39 -0500
committerAdrien Hopkins <[email protected]>2022-08-08 07:42:39 -0500
commitf7aaa86c851d456a3426157bc04cdbfeecd1716b (patch)
tree09892fccf026827fade28f4d76922fdcd514db64 /src/routes/withdraw.js
parentffc36d48b11045708967637832d959cade58b8eb (diff)
parent93f9d0abf58c5b5154e35b63524405554042bef1 (diff)
downloadcoinos-ui-f7aaa86c851d456a3426157bc04cdbfeecd1716b.tar.gz
coinos-ui-f7aaa86c851d456a3426157bc04cdbfeecd1716b.zip
Merge branch 'master' into i18n
Diffstat (limited to 'src/routes/withdraw.js')
-rw-r--r--src/routes/withdraw.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/routes/withdraw.js b/src/routes/withdraw.js
new file mode 100644
index 00000000..818d39da
--- /dev/null
+++ b/src/routes/withdraw.js
@@ -0,0 +1,9 @@
+import { post } from '$lib/utils';
+export async function POST({ locals, request }) {
+ let { token } = locals;
+ let body = await request.json();
+ body = await post('/lightning/send', body, {
+ authorization: `Bearer ${token}`
+ });
+ return { body };
+}