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

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

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