From ceb392d22e7c28294ed7953853909c5213a1536e Mon Sep 17 00:00:00 2001 From: Felipe Martin <812088+fmartingr@users.noreply.github.com> Date: Sun, 7 Apr 2024 21:33:22 +0200 Subject: [PATCH] fix: use relative path for all API calls (#872) Fixes #870 --- internal/view/assets/js/page/setting.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/view/assets/js/page/setting.js b/internal/view/assets/js/page/setting.js index 5e9ab9dca..35cc0b17c 100644 --- a/internal/view/assets/js/page/setting.js +++ b/internal/view/assets/js/page/setting.js @@ -107,7 +107,7 @@ export default { this.$emit("setting-changed", options); //request - fetch(new URL("/api/v1/auth/account", document.baseURI), { + fetch(new URL("api/v1/auth/account", document.baseURI), { method: "PATCH", body: JSON.stringify({ config: this.appOptions, @@ -337,7 +337,7 @@ export default { secondText: "No", mainClick: () => { this.dialog.loading = true; - fetch(`/api/accounts`, { + fetch(`api/accounts`, { method: "delete", body: JSON.stringify([account.username]), headers: {