aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/ecash
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/(app)/ecash')
-rw-r--r--src/routes/(app)/ecash/mint/+server.ts7
1 files changed, 7 insertions, 0 deletions
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);
+}