diff options
| author | Adam Soltys <[email protected]> | 2022-08-05 10:21:48 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-08-05 10:21:48 -0700 |
| commit | f0f318279775c3b306284c21b775bd5f1929ab54 (patch) | |
| tree | 974287d063e71ba5899d92f3dac3f1b1870824b6 /src/routes/withdraw.js | |
| parent | 184251383e36928dad873518a0fc6d427ca91dbb (diff) | |
| download | coinos-ui-f0f318279775c3b306284c21b775bd5f1929ab54.tar.gz coinos-ui-f0f318279775c3b306284c21b775bd5f1929ab54.zip | |
lightning withdrawals
Diffstat (limited to 'src/routes/withdraw.js')
| -rw-r--r-- | src/routes/withdraw.js | 10 |
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 }; +} |
