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