aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/invoice/+server.ts
blob: 0b5eb04ebbcdbaafcd9bdb6ed78aabfea1ca54ee (plain) (blame)
1
2
3
4
5
6
7
import { auth, post } from "$lib/utils";
import { json } from "@sveltejs/kit";

export const POST = async ({ cookies: c, request: r }) => {
	const j = await r.json();
	return json(await post("/invoice", j, auth(c)));
};