diff options
| author | Adrien Hopkins <[email protected]> | 2022-08-08 07:42:39 -0500 |
|---|---|---|
| committer | Adrien Hopkins <[email protected]> | 2022-08-08 07:42:39 -0500 |
| commit | f7aaa86c851d456a3426157bc04cdbfeecd1716b (patch) | |
| tree | 09892fccf026827fade28f4d76922fdcd514db64 /src/routes/withdraw.js | |
| parent | ffc36d48b11045708967637832d959cade58b8eb (diff) | |
| parent | 93f9d0abf58c5b5154e35b63524405554042bef1 (diff) | |
| download | coinos-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.js | 9 |
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 }; +} |
