diff options
| author | Adam Soltys <[email protected]> | 2026-03-03 22:45:50 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-03-03 22:45:50 -0800 |
| commit | 1e9ed8fa128ec5ae038be14ef168cad37c1c0eb1 (patch) | |
| tree | 29399a82df3f981a24ef6cc84562c8ee006738d7 /src/routes/(static) | |
| parent | e66a08d18f2bef2eccfe84042a2674141a73d1c2 (diff) | |
| download | coinos-ui-1e9ed8fa128ec5ae038be14ef168cad37c1c0eb1.tar.gz coinos-ui-1e9ed8fa128ec5ae038be14ef168cad37c1c0eb1.zip | |
api proxy
Diffstat (limited to 'src/routes/(static)')
| -rw-r--r-- | src/routes/(static)/register/auth/+page.svelte | 4 | ||||
| -rw-r--r-- | src/routes/(static)/support/+page.svelte | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/routes/(static)/register/auth/+page.svelte b/src/routes/(static)/register/auth/+page.svelte index aca1f30c..c45d63f6 100644 --- a/src/routes/(static)/register/auth/+page.svelte +++ b/src/routes/(static)/register/auth/+page.svelte @@ -174,7 +174,7 @@ console.log("Nostr key derivation failed", e); } - await post("/post/user", nostrPubkey ? { encryptedKeys, pubkey: nostrPubkey } : { encryptedKeys }); + await post("/api/user", nostrPubkey ? { encryptedKeys, pubkey: nostrPubkey } : { encryptedKeys }); } catch (e) { console.log("Canonical key generation failed", e); } @@ -269,7 +269,7 @@ // Clean up the account created by passkeyCreate if passkey registration failed if (passkeyToken) { try { - await fetch("/post/user/delete", { + await fetch("/api/user/delete", { method: "POST", headers: { "Content-Type": "application/json", diff --git a/src/routes/(static)/support/+page.svelte b/src/routes/(static)/support/+page.svelte index 3a9b011f..6af80f86 100644 --- a/src/routes/(static)/support/+page.svelte +++ b/src/routes/(static)/support/+page.svelte @@ -31,7 +31,7 @@ let submit = (e: any) => { e.preventDefault(); if (isTor) { - post("/post/email", { + post("/api/email", { username: user?.username || `${username} (unverified)`, email, message, @@ -43,7 +43,7 @@ } grecaptcha.ready(() => { grecaptcha.execute(recaptchaSiteKey, { action: "submit" }).then((token) => - post("/post/email", { + post("/api/email", { username: user?.username || `${username} (unverified)`, email, message, |
