aboutsummaryrefslogtreecommitdiffstats
path: root/code/app/src/lib/api/user.ts
diff options
context:
space:
mode:
authorivarlovlie <git@ivarlovlie.no>2022-10-09 18:42:33 +0200
committerivarlovlie <git@ivarlovlie.no>2022-10-09 18:42:33 +0200
commit7bbd3891a76d3a6da20a4aa3888e6da87e41aa6d (patch)
treec3602e6b8c3f2f79fb9c28465963365aaf49d8c4 /code/app/src/lib/api/user.ts
parentb2b76d0552ecf0c57a4d39fb0a1caa9b4c10bee9 (diff)
downloadgreatoffice-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.ts14
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> {