diff options
Diffstat (limited to 'src/routes/(app)/invoice/+server.ts')
| -rw-r--r-- | src/routes/(app)/invoice/+server.ts | 7 |
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))); +}; |
