From 8c750940246d492ea5eab4a80ee7336c4c53ec65 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sat, 19 Oct 2024 21:55:05 -0700 Subject: push notifications --- src/routes/(app)/subscription/delete/+server.ts | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/routes/(app)/subscription/delete/+server.ts (limited to 'src/routes/(app)/subscription/delete') diff --git a/src/routes/(app)/subscription/delete/+server.ts b/src/routes/(app)/subscription/delete/+server.ts new file mode 100644 index 00000000..f4c8357c --- /dev/null +++ b/src/routes/(app)/subscription/delete/+server.ts @@ -0,0 +1,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); +} -- cgit v1.2.3