diff options
| author | secondl1ght <[email protected]> | 2022-07-27 00:04:37 -0600 |
|---|---|---|
| committer | secondl1ght <[email protected]> | 2022-07-27 00:04:37 -0600 |
| commit | 1387dc5e4e69682749446f2e9b8717f96947328c (patch) | |
| tree | 5bd966261283f7cffd3926609b1174c74be8c8b6 /src/routes | |
| parent | 80cf7e9b77dcc4cbcf7711eb63a218c3aec07ec6 (diff) | |
| parent | 059613490db9be904791686c49851ec1cc095774 (diff) | |
| download | coinos-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.js | 5 | ||||
| -rw-r--r-- | src/routes/register.js | 6 |
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 }) }; +} |
