aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/login.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/login.js')
-rw-r--r--src/routes/login.js12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/routes/login.js b/src/routes/login.js
index e8c74365..771de9e1 100644
--- a/src/routes/login.js
+++ b/src/routes/login.js
@@ -1,13 +1,5 @@
-import got from 'got';
+import { post } from '$lib/utils';
export async function POST({ request }) {
- let json = await request.json();
-
- let body = await got
- .post('http://localhost:3119/login', {
- json
- })
- .json();
-
- return { body };
+ return { body: await post('/login', await request.json()) };
}