aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/enable2fa/+server.ts
blob: 988dd0ed66609795515caaba05bce6980553522d (plain) (blame)
1
2
3
4
5
6
7
8
import { auth, post } from "$lib/utils";

export async function POST({ cookies, request }) {
	const body = await request.json();
	const res = await post("/2fa", body, auth(cookies));

	return new Response(JSON.stringify(res));
}