aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/invoice/+server.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-09-10 20:39:47 -0700
committerAdam Soltys <[email protected]>2024-09-17 09:18:36 -0700
commit43746ec449900915ef098887334241cf59d8081f (patch)
tree2affa3041863be365f33d99e1f32bda60cf93a32 /src/routes/(app)/invoice/+server.ts
parent9c4816e3a9acb8e917cf3a034a8622d9026632a6 (diff)
downloadcoinos-ui-43746ec449900915ef098887334241cf59d8081f.tar.gz
coinos-ui-43746ec449900915ef098887334241cf59d8081f.zip
move routes
Diffstat (limited to 'src/routes/(app)/invoice/+server.ts')
-rw-r--r--src/routes/(app)/invoice/+server.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/routes/(app)/invoice/+server.ts b/src/routes/(app)/invoice/+server.ts
new file mode 100644
index 00000000..5e3d0300
--- /dev/null
+++ b/src/routes/(app)/invoice/+server.ts
@@ -0,0 +1,7 @@
+import { auth, post } from "$lib/utils";
+import { json } from "@sveltejs/kit";
+
+export let POST = async ({ cookies: c, request: r }) => {
+ let j = await r.json();
+ return json(await post("/invoice", j, auth(c)));
+};