aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/password/+server.js
blob: 9f2ab6b849fab434f3b04106f5a7014390306088 (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 }) {
	let result = await post('/checkPassword', await request.json(), auth(cookies));
	return json(result);
}