From 38660e024c055952180bfa3f9067274cf2e0d6ed Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 21 Nov 2024 16:31:25 -0800 Subject: ecash requests --- src/routes/(app)/ecash/mint/+server.ts | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/routes/(app)/ecash/mint/+server.ts (limited to 'src/routes/(app)/ecash') diff --git a/src/routes/(app)/ecash/mint/+server.ts b/src/routes/(app)/ecash/mint/+server.ts new file mode 100644 index 00000000..02170650 --- /dev/null +++ b/src/routes/(app)/ecash/mint/+server.ts @@ -0,0 +1,7 @@ +import { auth, post } from "$lib/utils"; +import { json } from "@sveltejs/kit"; + +export async function POST({ cookies, request }) { + const result = await post("/mint", await request.json(), auth(cookies)); + return json(result); +} -- cgit v1.2.3