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

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

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