aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/invoices/+page.server.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-12-26 13:55:33 -0800
committerAdam Soltys <[email protected]>2024-12-26 13:55:33 -0800
commit5590f9c8d87cabfae4375bd4520cb323992feca4 (patch)
tree2eafb84fea10bea51c636a98302621ce16e667ea /src/routes/(app)/invoices/+page.server.ts
parent23f0335aeb26b56d835a7134227e43f8798fc3c5 (diff)
downloadcoinos-ui-5590f9c8d87cabfae4375bd4520cb323992feca4.tar.gz
coinos-ui-5590f9c8d87cabfae4375bd4520cb323992feca4.zip
bolt 12 type
Diffstat (limited to 'src/routes/(app)/invoices/+page.server.ts')
-rw-r--r--src/routes/(app)/invoices/+page.server.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/routes/(app)/invoices/+page.server.ts b/src/routes/(app)/invoices/+page.server.ts
new file mode 100644
index 00000000..081d6a5b
--- /dev/null
+++ b/src/routes/(app)/invoices/+page.server.ts
@@ -0,0 +1,7 @@
+import { auth, get } from "$lib/utils";
+
+export async function load({ cookies }) {
+ const invoices = await get("/invoices", auth(cookies));
+ console.log(invoices.length)
+ return { invoices };
+}