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

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