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 | b95a816f7b6b31087057efab1081194db75886be (patch) | |
| tree | 48de265def768f24f402b23af0b1779f8f234db2 /src/routes/withdraw.js | |
| parent | c287bc29267d41f65c9e29efe9bafddfdc64b28e (diff) | |
| parent | f4c85698d32ab1346dcdb75b4244d615a2178e40 (diff) | |
| download | coinos-ui-b95a816f7b6b31087057efab1081194db75886be.tar.gz coinos-ui-b95a816f7b6b31087057efab1081194db75886be.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 }; +} |
