aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/pin
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-02-06 22:52:37 -0800
committerAdam Soltys <[email protected]>2023-02-06 22:52:37 -0800
commitb5b7fe81ba245f85ecc1a67318eeb92a34949861 (patch)
treef58083fd62e29a1e7ba6c8dcd3896a9db237a1f8 /src/routes/(app)/pin
parentc43ec91c41e75a3dc61611c1f56a5f151860350b (diff)
downloadcoinos-ui-b5b7fe81ba245f85ecc1a67318eeb92a34949861.tar.gz
coinos-ui-b5b7fe81ba245f85ecc1a67318eeb92a34949861.zip
fix internal sends
Diffstat (limited to 'src/routes/(app)/pin')
-rw-r--r--src/routes/(app)/pin/+server.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/routes/(app)/pin/+server.js b/src/routes/(app)/pin/+server.js
new file mode 100644
index 00000000..9f63f545
--- /dev/null
+++ b/src/routes/(app)/pin/+server.js
@@ -0,0 +1,7 @@
+import { json } from '@sveltejs/kit';
+import { auth, post } from '$lib/utils';
+
+export async function POST({ cookies, request }) {
+ let result = await post('/pin', await request.json(), auth(cookies));
+ return json(result);
+}