aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes
diff options
context:
space:
mode:
authorsecondl1ght <[email protected]>2022-07-27 00:04:37 -0600
committersecondl1ght <[email protected]>2022-07-27 00:04:37 -0600
commit1387dc5e4e69682749446f2e9b8717f96947328c (patch)
tree5bd966261283f7cffd3926609b1174c74be8c8b6 /src/routes
parent80cf7e9b77dcc4cbcf7711eb63a218c3aec07ec6 (diff)
parent059613490db9be904791686c49851ec1cc095774 (diff)
downloadcoinos-ui-1387dc5e4e69682749446f2e9b8717f96947328c.tar.gz
coinos-ui-1387dc5e4e69682749446f2e9b8717f96947328c.zip
Merge branch 'master' of github.com:coinos/coinos-ui-v2
Diffstat (limited to 'src/routes')
-rw-r--r--src/routes/login.js5
-rw-r--r--src/routes/register.js6
2 files changed, 11 insertions, 0 deletions
diff --git a/src/routes/login.js b/src/routes/login.js
new file mode 100644
index 00000000..771de9e1
--- /dev/null
+++ b/src/routes/login.js
@@ -0,0 +1,5 @@
+import { post } from '$lib/utils';
+
+export async function POST({ request }) {
+ return { body: await post('/login', await request.json()) };
+}
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 }) };
+}