aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/enable2fa/+server.js
blob: 344850daf4b7109b31723bd7b34109190a0165b6 (plain) (blame)
1
2
3
4
5
6
7
8
import { auth, post } from '$lib/utils';

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

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