aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/disable2fa/+server.js
blob: 980637734857ce1c390903aa6cc9de227424175b (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('/disable2fa', body, auth(request));

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