aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/post/+server.ts
blob: 35c041866d01d04ebed5e340cba44242cacfe510 (plain) (blame)
1
2
3
4
5
6
7
8
9
export async function POST({ cookies, params, request }) {
	const body = await request.json();
	try {
		const result = await post("/event", body, auth(cookies));
		return json(result);
	} catch (e: any) {
		error(500, e.message);
	}
}