aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/password/+server.ts
blob: 250dcfed768438f2bd7f579b1716579fe13a838e (plain) (blame)
1
2
3
4
5
6
7
import { json } from "@sveltejs/kit";
import { auth, post } from "$lib/utils";

export async function POST({ cookies, request }) {
  const result = await post("/password", await request.json(), auth(cookies));
  return json(result);
}