aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/register.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-07-26 21:06:01 -0700
committerAdam Soltys <[email protected]>2022-07-26 21:06:01 -0700
commit12309da2457532d2674aba2e3b02700c5dfeae1d (patch)
treedcd873e2a56f2cfc8e5f3bad0c355b3c4a1bb8ed /src/routes/register.js
parent6f2289f358e610a708cdd5d39265889b30b3a7d6 (diff)
downloadcoinos-ui-12309da2457532d2674aba2e3b02700c5dfeae1d.tar.gz
coinos-ui-12309da2457532d2674aba2e3b02700c5dfeae1d.zip
register endpoint
Diffstat (limited to 'src/routes/register.js')
-rw-r--r--src/routes/register.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/routes/register.js b/src/routes/register.js
new file mode 100644
index 00000000..9f79f94e
--- /dev/null
+++ b/src/routes/register.js
@@ -0,0 +1,6 @@
+import { post } from '$lib/utils';
+
+export async function POST({ request }) {
+ let user = await request.json();
+ return { body: await post('/register', { user }) };
+}