aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/withdraw.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-08-05 10:21:48 -0700
committerAdam Soltys <[email protected]>2022-08-05 10:21:48 -0700
commitdcd4fe70f6f23a5ac2df3b773fea89c1acd878b6 (patch)
tree3fc3810ba43b4c694952ec830207a9296f0b9516 /src/routes/withdraw.js
parenta8c7416831c1f120b794c987c94c307c0f515d52 (diff)
downloadcoinos-ui-dcd4fe70f6f23a5ac2df3b773fea89c1acd878b6.tar.gz
coinos-ui-dcd4fe70f6f23a5ac2df3b773fea89c1acd878b6.zip
lightning withdrawals
Diffstat (limited to 'src/routes/withdraw.js')
-rw-r--r--src/routes/withdraw.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/routes/withdraw.js b/src/routes/withdraw.js
new file mode 100644
index 00000000..aaed2250
--- /dev/null
+++ b/src/routes/withdraw.js
@@ -0,0 +1,10 @@
+import { post } from '$lib/utils';
+export async function POST({ locals, request }) {
+ let { token } = locals;
+ let body = await request.json();
+ console.log(body)
+ body = await post('/lightning/send', body, {
+ authorization: `Bearer ${token}`
+ });
+ return { body };
+}