diff options
| author | Adam Soltys <[email protected]> | 2026-02-16 16:05:56 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-02-16 16:05:56 -0800 |
| commit | 95427ee5189269e992ae4c788ce356709ed92c57 (patch) | |
| tree | 675507f470d626a55ff530c8ff76cc4e8df424e0 /src/routes/(app)/account/+server.ts | |
| parent | ac06683100e089ad589661b14ebaf5dc9582a256 (diff) | |
| download | coinos-ui-95427ee5189269e992ae4c788ce356709ed92c57.tar.gz coinos-ui-95427ee5189269e992ae4c788ce356709ed92c57.zip | |
default accounts
Diffstat (limited to 'src/routes/(app)/account/+server.ts')
| -rw-r--r-- | src/routes/(app)/account/+server.ts | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/routes/(app)/account/+server.ts b/src/routes/(app)/account/+server.ts index fbe1214b..4387373e 100644 --- a/src/routes/(app)/account/+server.ts +++ b/src/routes/(app)/account/+server.ts @@ -1,6 +1,15 @@ -import { auth, post } from "$lib/utils"; +import { auth, get, post } from "$lib/utils"; import { error, json } from "@sveltejs/kit"; +export async function GET({ cookies }) { + try { + return json(await get("/accounts", auth(cookies))); + } catch (e: any) { + console.log(e); + error(500, e.message); + } +} + export async function POST({ cookies, request }) { try { const body = await request.json(); |
