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
commit02ce8cd47c1cdf8a6f978b68c2251f141b128581 (patch)
treeea78cb1e8683b53809ff584193ae8cc975ef72a2 /src/routes
parentc8604d2b1a8a1ba1687ba18865c854518df0facd (diff)
parent12309da2457532d2674aba2e3b02700c5dfeae1d (diff)
downloadcoinos-ui-02ce8cd47c1cdf8a6f978b68c2251f141b128581.tar.gz
coinos-ui-02ce8cd47c1cdf8a6f978b68c2251f141b128581.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 }) };
+}