aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/enable2fa/+server.ts
blob: 767379689b901c75ad9c25ee5f099db66291433a (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));
}