aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/subscription/delete/+server.ts
blob: 1e6c1fdd7f8c4796e03dae8188a2cbe550b838c3 (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/delete", body, auth(cookies));
  return json(result);
}