diff options
| author | ivarlovlie <git@ivarlovlie.no> | 2022-10-09 18:42:33 +0200 |
|---|---|---|
| committer | ivarlovlie <git@ivarlovlie.no> | 2022-10-09 18:42:33 +0200 |
| commit | 7bbd3891a76d3a6da20a4aa3888e6da87e41aa6d (patch) | |
| tree | c3602e6b8c3f2f79fb9c28465963365aaf49d8c4 /code/app/src/lib/api/user.ts | |
| parent | b2b76d0552ecf0c57a4d39fb0a1caa9b4c10bee9 (diff) | |
| download | greatoffice-7bbd3891a76d3a6da20a4aa3888e6da87e41aa6d.tar.xz greatoffice-7bbd3891a76d3a6da20a4aa3888e6da87e41aa6d.zip | |
refactor/fix: Small refactors/fixes, update imports
Diffstat (limited to 'code/app/src/lib/api/user.ts')
| -rw-r--r-- | code/app/src/lib/api/user.ts | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/code/app/src/lib/api/user.ts b/code/app/src/lib/api/user.ts index f0dc932..f08fb6d 100644 --- a/code/app/src/lib/api/user.ts +++ b/code/app/src/lib/api/user.ts @@ -1,9 +1,9 @@ -import {api_base} from "$lib/configuration"; -import {http_delete, http_get, http_post} from "./internal-fetch"; -import type {LoginPayload} from "$lib/models/LoginPayload"; -import type {UpdateProfilePayload} from "$lib/models/UpdateProfilePayload"; -import type {CreateAccountPayload} from "$lib/models/CreateAccountPayload"; -import type {IInternalFetchResponse} from "$lib/models/IInternalFetchResponse"; +import { api_base } from "$lib/configuration"; +import { http_delete, http_get, http_post } from "./internal-fetch"; +import type { LoginPayload } from "$lib/models/internal/LoginPayload"; +import type { UpdateProfilePayload } from "$lib/models/internal/UpdateProfilePayload"; +import type { CreateAccountPayload } from "$lib/models/internal/CreateAccountPayload"; +import type { IInternalFetchResponse } from "$lib/models/internal/IInternalFetchResponse"; export async function login(payload: LoginPayload): Promise<IInternalFetchResponse> { return http_post(api_base("_/account/login"), payload); @@ -25,7 +25,7 @@ export async function check_forgot_password_request(public_id: string): Promise< export async function fulfill_forgot_password_request(public_id: string, newPassword: string): Promise<IInternalFetchResponse> { if (!public_id) throw new Error("Id is empty"); - return http_post(api_base("_/forgot-password-requests/fulfill"), {id: public_id, newPassword}); + return http_post(api_base("_/forgot-password-requests/fulfill"), { id: public_id, newPassword }); } export async function delete_account(): Promise<IInternalFetchResponse> { |
