aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/parse.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/parse.ts')
0 files changed, 0 insertions, 0 deletions
0129d0a4188ec4b768f'>^
1
2
3
4
5
6
7
8
9
10
11
12



                                                  






                                                                          
 
import { auth, post } from "$lib/utils";
import { error, json } from "@sveltejs/kit";

export async function POST({ cookies, request }) {
	try {
		const body = await request.json();
		return json(await post("/accounts", body, auth(cookies)));
	} catch (e: any) {
		console.log(e);
		error(500, e.message);
	}
}