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

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