aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/invoice
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/(app)/invoice')
-rw-r--r--src/routes/(app)/invoice/+server.ts12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/routes/(app)/invoice/+server.ts b/src/routes/(app)/invoice/+server.ts
deleted file mode 100644
index b18eae15..00000000
--- a/src/routes/(app)/invoice/+server.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-import { auth, post } from "$lib/utils";
-import { error, json } from "@sveltejs/kit";
-
-export const POST = async ({ cookies, request }) => {
- try {
- const body = await request.json();
- return json(await post("/invoice", body, auth(cookies)));
- } catch (e) {
- const { message } = e as Error;
- error(500, message);
- }
-};