aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/password/+server.js
blob: ed9b4dbb2675536f3e510857937562c742362e04 (plain) (blame)
1
2
3
4
5
6
7
8
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);
}