diff options
| author | Adam Soltys <[email protected]> | 2022-07-26 21:06:01 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-07-26 21:06:01 -0700 |
| commit | 12309da2457532d2674aba2e3b02700c5dfeae1d (patch) | |
| tree | dcd873e2a56f2cfc8e5f3bad0c355b3c4a1bb8ed /src/routes/login.js | |
| parent | 6f2289f358e610a708cdd5d39265889b30b3a7d6 (diff) | |
| download | coinos-ui-12309da2457532d2674aba2e3b02700c5dfeae1d.tar.gz coinos-ui-12309da2457532d2674aba2e3b02700c5dfeae1d.zip | |
register endpoint
Diffstat (limited to 'src/routes/login.js')
| -rw-r--r-- | src/routes/login.js | 12 |
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()) }; } |
