diff options
| author | Adam Soltys <[email protected]> | 2022-11-02 19:47:29 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-11-02 19:48:18 -0700 |
| commit | f0d88333750a2865d3016e92620a87269160effa (patch) | |
| tree | 1cc276efeb5287e1fc176ec60d46aed091ab08ca /src/routes/(app)/disable2fa/+server.js | |
| parent | b66477f0912349ef91adaff8c57ac787b5a56447 (diff) | |
| download | coinos-ui-f0d88333750a2865d3016e92620a87269160effa.tar.gz coinos-ui-f0d88333750a2865d3016e92620a87269160effa.zip | |
move to app layout
Diffstat (limited to 'src/routes/(app)/disable2fa/+server.js')
| -rw-r--r-- | src/routes/(app)/disable2fa/+server.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/routes/(app)/disable2fa/+server.js b/src/routes/(app)/disable2fa/+server.js new file mode 100644 index 00000000..237da445 --- /dev/null +++ b/src/routes/(app)/disable2fa/+server.js @@ -0,0 +1,8 @@ +import { auth, post } from '$lib/utils'; + +export async function PUT({ cookies, request }) { + let body = await request.json(); + let res = await post('/disable2fa', body, auth(cookies)); + + return new Response(JSON.stringify(res)); +} |
