diff options
| author | Adam Soltys <[email protected]> | 2024-11-29 23:32:08 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-11-29 23:32:08 -0800 |
| commit | 42cc753e86a3b7c5020206dda68bbb81bf15da2b (patch) | |
| tree | 9af9534cf6d40a9a8ea1888436432db100cb6ab0 /src/routes/(app)/contacts | |
| parent | 68bb0a2ec6ec407e42e4c82d0be00cf13db21c94 (diff) | |
| download | coinos-ui-42cc753e86a3b7c5020206dda68bbb81bf15da2b.tar.gz coinos-ui-42cc753e86a3b7c5020206dda68bbb81bf15da2b.zip | |
load more contacts
Diffstat (limited to 'src/routes/(app)/contacts')
| -rw-r--r-- | src/routes/(app)/contacts/+server.ts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/routes/(app)/contacts/+server.ts b/src/routes/(app)/contacts/+server.ts new file mode 100644 index 00000000..e448bda2 --- /dev/null +++ b/src/routes/(app)/contacts/+server.ts @@ -0,0 +1,12 @@ +import { auth, get } from "$lib/utils"; +import { json } from "@sveltejs/kit"; + +export async function GET({ cookies }) { + try { + const contacts = await get("/contacts", auth(cookies)); + return json(contacts); + } catch (e) { + console.log(e); + return json({}); + } +} |
