diff options
| author | Adam Soltys <[email protected]> | 2023-01-20 11:39:55 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-01-20 11:39:55 -0800 |
| commit | 681e307d00e38ee9bc336e547660f56e71b646c6 (patch) | |
| tree | bc887f9e6f8e055e53bbc6a9330c83708957c937 /src/routes/(app)/send | |
| parent | f7d9ec75ac19664fdfffd430ece29f288d6d4819 (diff) | |
| download | coinos-ui-681e307d00e38ee9bc336e547660f56e71b646c6.tar.gz coinos-ui-681e307d00e38ee9bc336e547660f56e71b646c6.zip | |
rename endpoints
Diffstat (limited to 'src/routes/(app)/send')
4 files changed, 5 insertions, 4 deletions
diff --git a/src/routes/(app)/send/[uuid=uuid]/+page.server.js b/src/routes/(app)/send/[uuid=uuid]/+page.server.js index dd6fb82d..e9f161c7 100644 --- a/src/routes/(app)/send/[uuid=uuid]/+page.server.js +++ b/src/routes/(app)/send/[uuid=uuid]/+page.server.js @@ -20,7 +20,7 @@ export const actions = { return invalid(403, { amount, confirm: true }); } - await post('/send', body, auth(cookies)); + await post('/payments', body, auth(cookies)); } catch (e) { return invalid(400, { message: e.message }); } diff --git a/src/routes/(app)/send/lightning/[payreq]/+page.server.js b/src/routes/(app)/send/lightning/[payreq]/+page.server.js index a29793bf..2ae693aa 100644 --- a/src/routes/(app)/send/lightning/[payreq]/+page.server.js +++ b/src/routes/(app)/send/lightning/[payreq]/+page.server.js @@ -2,7 +2,7 @@ import { invalid, redirect } from '@sveltejs/kit'; import { btc as asset, auth, post } from '$lib/utils'; export async function load({ params }) { - return post('/lightning/parse', params); + return post('/parse', params); } export const actions = { diff --git a/src/routes/(app)/send/user/[username]/[...amount]/+page.server.js b/src/routes/(app)/send/user/[username]/[...amount]/+page.server.js index e670320c..01712df2 100644 --- a/src/routes/(app)/send/user/[username]/[...amount]/+page.server.js +++ b/src/routes/(app)/send/user/[username]/[...amount]/+page.server.js @@ -20,7 +20,7 @@ export const actions = { return invalid(403, { amount, confirm: true }); } - await post('/send', body, auth(cookies)); + await post('/payments', body, auth(cookies)); } catch (e) { console.log(e); return invalid(400, { message: e.message }); diff --git a/src/routes/(app)/send/user/[username]/[...amount]/+page.svelte b/src/routes/(app)/send/user/[username]/[...amount]/+page.svelte index 07e29f44..a5b463be 100644 --- a/src/routes/(app)/send/user/[username]/[...amount]/+page.svelte +++ b/src/routes/(app)/send/user/[username]/[...amount]/+page.svelte @@ -27,7 +27,8 @@ ({ hash } = await post('/invoice', { invoice: { amount, - rate: rates[recipient.currency] + rate: rates[recipient.currency], + type: 'internal' }, user: recipient })); |
