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
commit059613490db9be904791686c49851ec1cc095774 (patch)
treedbf229d10d44b19bac1312b5847d75c4c04d0261 /src/routes/register.js
parentb13d88d63dbd7ce7df9d6847036d3e36d78f97b2 (diff)
downloadcoinos-ui-059613490db9be904791686c49851ec1cc095774.tar.gz
coinos-ui-059613490db9be904791686c49851ec1cc095774.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 }) };
+}